Skip to content

Releases: phpgt/DataObject

PHP 8.4 compatibility and better type-safe arrays

14 Feb 16:47
534b593

Choose a tag to compare

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

13 Jul 09:45

Choose a tag to compare

Empty/null nested arrays

13 Jul 09:35
53e355a

Choose a tag to compare

What's Changed

Full Changelog: v1.0.5...v1.0.6

CI and QA improvements

28 Apr 15:07
d8edf5f

Choose a tag to compare

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

15 Sep 09:23
dde4c5b

Choose a tag to compare

This minor patch release tidies up the merges that were made in the previous release.

What's Changed

  • maintenance: tidy up merges by @g105b in #15

Full Changelog: v1.0.3...v1.0.4

Add missing recursive call

14 Sep 19:31
68a0d23

Choose a tag to compare

This minor patch release adds a missing recursive call to deal with nested objects that are constructed as custom DataObject classes.

Bugfixes and build improvements

14 Sep 19:13
f384434

Choose a tag to compare

What's Changed

  • build: hard dependencies by @g105b in #8
  • maintenance: dependabot by @g105b in #10
  • fix: nested objects with custom classes by @g105b in #12

New Contributors

  • @g105b made their first contribution in #8

Full Changelog: v1.0.0...v1.0.1

v1 release

15 Mar 18:07

Choose a tag to compare

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

18 Jan 23:16

Choose a tag to compare

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.

JsonData objects

18 Jan 17:09

Choose a tag to compare

JsonData objects Pre-release
Pre-release

An extension to the DataObject, the JsonData object can represent the datatypes of a standard Json response, which includes arrays and primitives.