Get the latest tech news
PHP 8.5 Alpha 1 Released With New Features
The first alpha release of PHP 8.5 was issued last week in kicking off the release cycle in working toward the official PHP 8.5.0 release later in the year. Some of the changes to be found with the PHP 8.5 Alpha 1 development release include: - Support for Closures and first-class callables in constant expressions.
Some of the changes to be found with the PHP 8.5 Alpha 1 development release include: - Support for Closures and first-class callables in constant expressions. - Adding the #[\NoDiscard] attribute to indicate a function's return value is important and should be consumed.
Or read this on Phoronix