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...
DNF Types in PHP 8.2

DNF Types in PHP 8.2

Since PHP 8.0, we can use union types, where the value should be one of the specified types. Since PHP 8.1, we can use intersection types, where the value should...