PHP 8.1 features, one year later Closing on one year after PHP 8.1 publication, we can take a look at the published features, and how they are doing in current code. Let’s take the list of ‘PHP Core’ from the New Features ¶. Project corpus We’ll use that against the Exakat corpus, with 2696 PHP […]
One less hidden bug with Enum PHP 8.1 provides now enumerations, a.k.a. enums, as a native PHP construct. They provide a custom type with a limited set of values. Enumerations have been around in PHP in various forms, for a long time : check bensampo/laravel-enum, spatie/enum, marc-mabe/php-enum, eloquent/enumeration or even any framework (CakePHP-enums). Before that, […]