In PHP 8.4, fulfilling an interface property meant redefining the whole property hook. PHP 8.6 lets a readonly property do it and keeps the class much tighter. Big win for value objects.
#PHP #PHP86 #OOP
https://www.phparch.com/2026/09/stop-writing-php-like-this-8-6-fixes-it/
In PHP 8.4, fulfilling an interface property meant redefining the whole property hook. PHP 8.6 lets a readonly property do it and keeps the class much tighter. Big win for value objects. #PHP #PHP86 #OOP https://www.phparch.com/2026/09/stop-writing-php-like-this-8-6-fixes-it/
0 vue
Publié le 28/09/2026 11:01
0:09
In PHP 8.4, fulfilling an interface property meant redefining the whole property hook. PHP 8.6 lets a readonly property do it and keeps the class much tighter. Big win for value objects.
#PHP #PHP86 #OOP
https://www.phparch.com/2026/09/stop-writing-php-like-this-8-6-fixes-it/
0 commentaire
?