On Tue, Apr 11, 2023 at 9:29 AM Jeffrey Dafoe <jda...@fsx.com> wrote:

> 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.
>
> 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.
>
>
To clarify; Are you saying that you have a _lot_ of classes _which make use
of dynamic properties_?  A class where properties are predefined is
unimpacted by this.  stdClass is also unimpacted (as it implicitly has
allowdynamicproperties).  The only classes you should need to add the
attribute to are ones where you're using them, essentially, as typed
associative arrays.

I'm surprised if that's what you have, because it seems like a lot of extra
effort to give names to what are essentially anonymous structures.  The
advantage of providing a name should be that you get to know what
properties will be present (and perhaps that the values therein are
validated or typed themselves).

Can you expand a bit more on your use-case?

-Sara

Reply via email to