Re: [PHP-DEV] Re: [RFC] Deprecate dynamic properties

This is only part of a thread. view whole thread
  116270
October 13, 2021 09:21 guilliam.xavier@gmail.com (Guilliam Xavier)
On Wed, Oct 13, 2021 at 11:17 AM Guilliam Xavier 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".