Readonly properties are coming in PHP 8.1

1 · Amit Merchant · July 6, 2021, 7:41 p.m.
PHP, as a language, is ever-changing and ever-evolving. It’s not a language it was 10 years ago. This is all because the PHP’s core team which has been constantly improving minor things that might not look significant at first glance but when fixed/implemented, can dramatically improve the overall developer experience. One such thing that PHP is going to introduce is called readonly properties in the upcoming version 8.1 Essentially, the readonly properties are introduced to mitigate language’s ...