Re: Future stability of PHP?
| From: | Lynn | Date: | Tue, 11 Apr 2023 14:10:39 +0000 |
| Subject: | Re: Future stability of PHP? | ||
| References: | 1 2 3 4 5 6 7 8 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-119920@lists.php.net to get a copy of this message | ||
On Tue, Apr 11, 2023 at 3:33 PM Jeffrey Dafoe <JDafoe@fsx.com> wrote:
> > was something introduced in a time that the code being written using it
> has
> > 100% test coverage and static analysers protecting it. It's easier for
> me to deal
> > with any BC breaks of PHP 7.1 or higher than it is to deal with
> deprecations of
> > PHP 5.6 or lower.
>
> 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.