Pseudo-types like callable and iterable may seem convenient at first glance, but they introduce ambiguities and make code harder to analyze.
PHP
Readonly Property Defaults in PHP 8.6: A Four-Year-Old Restriction Finally Lifts
A clear overview of PHP 8.6’s readonly property defaults RFC, why the old restriction existed, and why interface properties made it worth revisiting. It also covers the practical edge cases, so you know where the Read more…