Re: Re: [RFC] Deprecate dynamic properties

From: Date: Wed, 13 Oct 2021 09:52:25 +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-116271@lists.php.net to get a copy of this message
Le 13/10/2021 à 11:17, Guilliam Xavier a écrit :
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 why not ? using the FQDN is 100% valid, autoloaders should take care of this, not the end user.
For what it worth, I'm using both, depending upon context, both can make sense. Regards, -- Pierre

« previous php.internals (#116271) next »