Re: Re: Constructor property promotion for final properties

From: Date: Sun, 23 Mar 2025 15:12:11 +0000
Subject: Re: Re: Constructor property promotion for final properties
References: 1 2 3 4 5 6  Groups: php.internals 
Request: Send a blank email to internals+get-126914@lists.php.net to get a copy of this message
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

« previous php.internals (#126914) next »