Re: [RFC] Readonly Property Defaults
| From: | Nick Sdot | Date: | Sun, 19 Jul 2026 12:31:14 +0000 |
| Subject: | Re: [RFC] Readonly Property Defaults | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-132027@lists.php.net to get a copy of this message | ||
On 04.07.26 17:03, Nick Sdot wrote:
Hey Internals, I would like to present a tiny, five-line-removal RFC allowing default values on readonly properties. Allowing default values on readonly class properties enables creating a strict contract for implementation property values that will not change at runtime -- as in, constant-like behaviour with contract. I would love doing that. Please find the RFC text here: https://wiki.php.net/rfc/readonly_property_defaults -- Cheers NickHey everyone, this is my "Intent to Vote" mail; I am planning to open the vote on or around July 23th. --- Cheers Nick