Re: Alias stdClass to DynamicObject?
| From: | Christian Schneider | Date: | Mon, 06 Sep 2021 16:22:13 +0000 |
| Subject: | Re: Alias stdClass to DynamicObject? | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-115968@lists.php.net to get a copy of this message | ||
Am 06.09.2021 um 18:08 schrieb Benjamin Morel <benjamin.morel@gmail.com>:
> Yes, please! A future where dynamic properties are only allowed on
> DynamicObject is bright.
I have nothing against a DynamicObject alias for people who like to be more explicit in their
code...
> I would even deprecate the stdClass alias straight away, so that the whole
> thing can be gone in PHP 9.
... but I'd prefer retaining a backward compatible version for library code, at least for a
while and preferably without warnings :-)
- Chris