Releases: PhpGt/DataObject
PHP 8.4 compatibility and better type-safe arrays
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
Empty/null nested arrays in objects
Full Changelog: v1.0.6...v1.0.7
Empty/null nested arrays
What's Changed
Full Changelog: v1.0.5...v1.0.6
CI and QA improvements
Matrix builds are now standard for every push, building on all supported PHP versions concurrently.
During the CI process, three QA tools are introduced: Mess Detector, Code Sniffer and PHPStan.
Have fun!
Maintenance of merges
This minor patch release tidies up the merges that were made in the previous release.
What's Changed
Full Changelog: v1.0.3...v1.0.4
Add missing recursive call
Fix for creating nested objects with custom classes
#13 fixes the bug where a custom class could be provided, but nested objects wouldn't be cast to the custom class.
Full Changelog: v1.0.1...v1.0.2
Bugfixes and build improvements
v1 release
The first public stable release of the most boring PHP library has just landed! DataObject
adds such simple functionality to projects, but it is an important staple to how repositories within PHP.Gt and beyond will interoperate.
Have fun and stay productive!
JSON functionality refactored into own repository
The usefulness of the JsonObject and JsonObjectBuilder classes are worth maintaining separately. This keeps the functionality of this repository totally focussed, exactly how a DataObject should be.
See https://github.com/PhpGt/Json for the refactored functionality that builds upon this repository.