News
In the second instalment of this article series dedicated to PHP 7, we continue our exploration of PHP 7 new features focusing on object-oriented programming support, classes, and interfaces.
In this article, we will review new PHP 8 features related to classes, including enums, the new readonly modifier for a class property, and constructor parameter promotion.
Support for read-only classes in PHP 8.2 means that a class marked with the readonly modifier will mark all instance properties of the class as read-only and prevent the creation of dynamic ...
Some results have been hidden because they may be inaccessible to you
Show inaccessible results