Re: Re: Constructor property promotion for final properties
On Fri, Mar 21, 2025, at 2:29 PM, Daniel Scherzer wrote:
>>> Yes, that would result in constructor property promotion. I'll need to retarget
>>> the original PR for master, but at https://github.com/php/php-src/pull/17861 you
>>> can see in Zend/tests/property_hooks/final_prop_promoted_2.phpt
a very similar test
>>> case.
To answer the original question: I'm not against this change, but as it is a syntax change, I
think it does warrant an RFC, even if it's a small/easy one. That's a good way to flesh
out the edge cases like that.
--Larry Garfield
Thread (9 messages)