Weird, that looks wrong to me, so I may be wrong here. When receiving a string containing a symbol, the only sensible approach is to consider it a FQN, as no context is provided with the string.
Marco Pivetta http://twitter.com/Ocramius http://ocramius.github.com/ On Mon, Dec 11, 2017 at 10:23 AM, Andreas Hennings <andr...@dqxtech.net> wrote: > On 11 December 2017 at 10:16, Marco Pivetta <ocram...@gmail.com> wrote: > > On Mon, Dec 11, 2017 at 10:03 AM, Andreas Hennings <andr...@dqxtech.net> > > wrote: > >> > >> On 11 December 2017 at 09:16, Marco Pivetta <ocram...@gmail.com> wrote: > >> > If you really want to expose a symbol's FQN, > >> > >> Just to clarify: For me, "FQN" means "fully-qualified name", which > >> begins with "\\". > >> This is specifically not what I propose here. I want the name without > >> the leading namespace separator. > >> So maybe "getFullName()" is misleading. > > > > > > A FQN does not start with `\`. In strings, you always use the FQN > > I was following the FQN definition from php-fig group like here, > > https://github.com/php-fig/fig-standards/blob/master/ > accepted/PSR-4-autoloader.md > > Maybe this is wrong? >