PHP 8.6 Reopens the Door to readonly Defaults
Freek Van der Herten examines a PHP 8.6 RFC that changes how readonly properties can receive default values. The overview places the four-year restriction in context, explains why interface properties renewed the case for change, and flags the practical edge cases. It helps PHP developers judge when the new syntax is useful and where existing limits remain.




Comments
No comments yet — be the first.
Open the discussion
No account or password needed — just enter your e-mail and we’ll send you a one-time sign-in link. First time here? You’re set up automatically.
Your rating will be applied automatically after you sign in.
Check your inbox
We’ve sent a sign-in link to …. Open it on this device — this tab will sign you in automatically.
Nothing arrived? Check your spam folder — and mark the mail as "Not spam" so it lands in your inbox next time.