Readonly Classes in PHP 8.2

Readonly Classes in PHP 8.2

Since PHP 8.2, classes can be declared as readonly. This means that all class properties automatically becomes readonly. The readonly properties were introduced in PHP 8.1. These properties can be...