Re: Reflection API: Add ::getFullName() method.
| From: | Andreas Hennings | Date: | Mon, 11 Dec 2017 09:23:02 +0000 |
| Subject: | Re: Reflection API: Add ::getFullName() method. | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-101319@lists.php.net to get a copy of this message | ||
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?