New Features in PHP 8.2: Read‑only Classes, DNF Types, Stand‑alone null/false/true Types, and Constant Traits
The article introduces PHP 8.2’s major enhancements—including read‑only classes, disjunctive normal form (DNF) types, the ability to use null, false and true as independent types, and constant definitions inside traits—providing code examples that illustrate each new capability.