Skip to content

PHP 8.4 compatibility and better type-safe arrays

Latest
Compare
Choose a tag to compare
@g105b g105b released this 14 Feb 16:47
· 3 commits to master since this release
534b593

This library has been upgraded to fully support PHP 8.4, including removal of any deprecations from previous PHP versions, and the implementation of explicit nullable types.

The type-safe array functions have been improved to bring more consistency with other type-safe functions. The main change is how exceptions are raised: if the value within an array can be cast to the specified type, it will automatically cast (just as it does with the existing type-safe functions), but if not, PHP will throw the appropriate error to indicate that a class can't be cast to a type (or a value can't be cast to a class).

What's Changed

Full Changelog: v1.0.7...v1.1.0