Re: [RFC] Allow Reassignment of Promoted Readonly Properties in Constructor
| From: | Marco Pivetta | Date: | Mon, 02 Feb 2026 10:54:21 +0000 |
| Subject: | Re: [RFC] Allow Reassignment of Promoted Readonly Properties in Constructor | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-129977@lists.php.net to get a copy of this message | ||
Hey Nicolas,
On Thu, 22 Jan 2026 at 16:34, Nicolas Grekas <nicolas.grekas+php@gmail.com>
wrote:
> Dear all,
>
> Here is a new RFC for you to consider:
> https://wiki.php.net/rfc/promoted_readonly_constructor_reassign
>
What happens if one calls
$obj->__construct(1, 2, 3) (on an already
instantiated $obj) in the context of this patch?
Marco Pivetta
https://mastodon.social/@ocramius
https://ocramius.github.io/