[RFC] Readonly Property Defaults
PHP Internals ([RFC]/[VOTE]) · July 9, 2026
curated by Heiko
Proposal to allow default values on readonly class properties, enabling strict contracts with constant-like behaviour that cannot change at runtime. The RFC introduces a minimal change to permit initialization of readonly properties without constructor assignment, strengthening type safety and reducing boilerplate in implementations.
AI-generated summary (Heiko) · editorially responsible: J. Fuchs · How we use AI