Re: Re: [RFC] Deprecate dynamic properties
| From: | Guilliam Xavier | Date: | Wed, 13 Oct 2021 09:21:03 +0000 |
| Subject: | Re: Re: [RFC] Deprecate dynamic properties | ||
| References: | 1 2 3 4 5 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-116270@lists.php.net to get a copy of this message | ||
On Wed, Oct 13, 2021 at 11:17 AM Guilliam Xavier <guilliam.xavier@gmail.com>
wrote:
> Off-topic:
>
> if ( class_exists('\\WeakMap') ) {
>>
>
> People should stop using a leading slash in FQCN *strings*. \Foo::class
> is "Foo", not "\Foo". It might work generally but that's asking for
> problems (e.g. for autoloaders).
>
> (Sorry.)
>
And of course I mistyped "leading backslash"... Also externals.io seems to
strip them, so: \\Foo::class is "Foo", not "\\Foo".