RE: [PHP-DEV] Future stability of PHP?
| From: | Jeffrey Dafoe | Date: | Tue, 11 Apr 2023 14:29:24 +0000 |
| Subject: | RE: [PHP-DEV] Future stability of PHP? | ||
| References: | 1 2 3 4 5 6 7 8 9 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-119927@lists.php.net to get a copy of this message | ||
Essentially the same thing here. Removal of dynamic properties will be the next big one for my team.
It's the deprecations that hit huge swaths of code without really offering much benefit that
are annoying.
-Jeff
You can add
#[AllowDynamicProperties] to classes where you want to allow dynamic
properties.
Yes, we have a _lot_ of classes. Also multiple versions of Zend framework that we backport to.
However, I see in a subsequent email that this is in preparation for improvements, which makes it
more tolerable.
-Jeff