PHP 8.4 Features Beyond Property Hooks And Array Functions
Php 8.4 features beyond the hype: deprecated attribute, PDO driver subclasses, lazy objects, and new mb_* functions for multibyte string manipulation.
Most of the posts about php 8.4 are about property hooks, asymmetric property visibility, the new array functions and the new html features. But there are a few more features that deserve attention. The deprecated attribute Before php 8.4 the only way to document deprecated code was to add a @deprecatedcomment tag. Now this is an attribute with message and since properties. A use case could be adding it to an older version of the api. [#\Deprecated(message: 'Use route /v2/something', since: 'v2')] PDO specific driver subclasses Before php 8.4 the d...