Saturday, July 11, 2026
updated hourly · four languages, one press

php-net.pro · the dev news broadsheet

The Dev Dispatch

PHP · RFC Watch

[RFC] Readonly Property Defaults

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.

Read the original source ↗

AI-generated summary (Heiko) · editorially responsible: J. Fuchs · How we use AI

← back to the front page