Re: Reflection API: Add ::getFullName() method.
| From: | Marco Pivetta | Date: | Mon, 11 Dec 2017 09:28:52 +0000 |
| Subject: | Re: Reflection API: Add ::getFullName() method. | ||
| References: | 1 2 3 4 5 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-101320@lists.php.net to get a copy of this message | ||
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 <andreas@dqxtech.net>
wrote:
> On 11 December 2017 at 10:16, Marco Pivetta <ocramius@gmail.com> wrote:
> > On Mon, Dec 11, 2017 at 10:03 AM, Andreas Hennings <andreas@dqxtech.net>
> > wrote:
> >>
> >> On 11 December 2017 at 09:16, Marco Pivetta <ocramius@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?
>