On Fri, Feb 14, 2025 at 1:10 PM Aleksander Machniak <a...@alec.pl> wrote:

> On 14.02.2025 12:57, Derick Rethans wrote:
> > None of the current attributes (ReturnTypeWillChange,
> > AllowDynamicProperties, SensitiveParameter, Override, and Deprecated)
> > change the behaviour of how a program runs. They only add warnings. with
> > the exception of AllowDynamicProperties to be an actual 'feature' in PHP
> > 9.0 (now it's only a deprecation warning silencer).
>
> For clarity, it's not AllowDynamicProperties attribute throwing an
> exception in PHP9, it's use of a "dynamic" property on an object not
> marked with this attribute. So, I'm not sure it's a valid exception to
> the rule.
>
>
You're absolutely right that it's not the use of the property that causes
exceptions
to be thrown, *but it's still a valid exception* to the rule, since the use
of the property
changes how a program runs (which was the point that was being made).

Best,
Jakob

Reply via email to