tag:github.com,2008:https://github.com/phpgt/DataObject/releases Release notes from DataObject 2025-02-14T16:43:15Z tag:github.com,2008:Repository/330221980/v1.1.0 2025-02-14T16:47:07Z PHP 8.4 compatibility and better type-safe arrays <p>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.</p> <p>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).</p> <h2>What's Changed</h2> <ul> <li>PHP 8.4 compatibility by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/g105b/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/g105b">@g105b</a> in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="2853297179" data-permission-text="Title is private" data-url="https://github.com/phpgt/DataObject/issues/50" data-hovercard-type="pull_request" data-hovercard-url="/phpgt/DataObject/pull/50/hovercard" href="https://github.com/phpgt/DataObject/pull/50">#50</a></li> <li>Array type safety by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/g105b/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/g105b">@g105b</a> in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="2853601498" data-permission-text="Title is private" data-url="https://github.com/phpgt/DataObject/issues/51" data-hovercard-type="pull_request" data-hovercard-url="/phpgt/DataObject/pull/51/hovercard" href="https://github.com/phpgt/DataObject/pull/51">#51</a></li> </ul> <p><strong>Full Changelog</strong>: <a class="commit-link" href="https://github.com/phpgt/DataObject/compare/v1.0.7...v1.1.0"><tt>v1.0.7...v1.1.0</tt></a></p> g105b tag:github.com,2008:Repository/330221980/v1.0.7 2023-07-13T09:45:37Z Empty/null nested arrays in objects <p><strong>Full Changelog</strong>: <a class="commit-link" href="https://github.com/phpgt/DataObject/compare/v1.0.6...v1.0.7"><tt>v1.0.6...v1.0.7</tt></a></p> g105b tag:github.com,2008:Repository/330221980/v1.0.6 2023-07-13T09:35:38Z Empty/null nested arrays <h2>What's Changed</h2> <ul> <li>Empty/null array fixes by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/g105b/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/g105b">@g105b</a> in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1802584734" data-permission-text="Title is private" data-url="https://github.com/phpgt/DataObject/issues/47" data-hovercard-type="pull_request" data-hovercard-url="/phpgt/DataObject/pull/47/hovercard" href="https://github.com/phpgt/DataObject/pull/47">#47</a></li> <li>ci: remove scrutinizer by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/g105b/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/g105b">@g105b</a> in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1802588609" data-permission-text="Title is private" data-url="https://github.com/phpgt/DataObject/issues/48" data-hovercard-type="pull_request" data-hovercard-url="/phpgt/DataObject/pull/48/hovercard" href="https://github.com/phpgt/DataObject/pull/48">#48</a></li> </ul> <p><strong>Full Changelog</strong>: <a class="commit-link" href="https://github.com/phpgt/DataObject/compare/v1.0.5...v1.0.6"><tt>v1.0.5...v1.0.6</tt></a></p> g105b tag:github.com,2008:Repository/330221980/v1.0.5 2023-04-28T15:07:26Z CI and QA improvements <p>Matrix builds are now standard for every push, building on all supported PHP versions concurrently.</p> <p>During the CI process, three QA tools are introduced: Mess Detector, Code Sniffer and PHPStan.</p> <p>Have fun!</p> g105b tag:github.com,2008:Repository/330221980/v1.0.4 2022-09-15T09:23:15Z Maintenance of merges <p>This minor patch release tidies up the merges that were made in the previous release.</p> <h2>What's Changed</h2> <ul> <li>maintenance: tidy up merges by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/g105b/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/g105b">@g105b</a> in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1374183538" data-permission-text="Title is private" data-url="https://github.com/phpgt/DataObject/issues/15" data-hovercard-type="pull_request" data-hovercard-url="/phpgt/DataObject/pull/15/hovercard" href="https://github.com/phpgt/DataObject/pull/15">#15</a></li> </ul> <p><strong>Full Changelog</strong>: <a class="commit-link" href="https://github.com/phpgt/DataObject/compare/v1.0.3...v1.0.4"><tt>v1.0.3...v1.0.4</tt></a></p> g105b tag:github.com,2008:Repository/330221980/v1.0.3 2022-09-14T19:31:42Z Add missing recursive call <p>This minor patch release adds a missing recursive call to deal with nested objects that are constructed as custom DataObject classes.</p> <ul> <li>11 nested by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/g105b/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/g105b">@g105b</a> in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1373480632" data-permission-text="Title is private" data-url="https://github.com/phpgt/DataObject/issues/14" data-hovercard-type="pull_request" data-hovercard-url="/phpgt/DataObject/pull/14/hovercard" href="https://github.com/phpgt/DataObject/pull/14">#14</a></li> </ul> g105b tag:github.com,2008:Repository/330221980/v1.0.2 2022-09-14T19:24:39Z Fix for creating nested objects with custom classes <p><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1373475192" data-permission-text="Title is private" data-url="https://github.com/phpgt/DataObject/issues/13" data-hovercard-type="pull_request" data-hovercard-url="/phpgt/DataObject/pull/13/hovercard" href="https://github.com/phpgt/DataObject/pull/13">#13</a> fixes the bug where a custom class could be provided, but nested objects wouldn't be cast to the custom class.</p> <p><strong>Full Changelog</strong>: <a class="commit-link" href="https://github.com/phpgt/DataObject/compare/v1.0.1...v1.0.2"><tt>v1.0.1...v1.0.2</tt></a></p> g105b tag:github.com,2008:Repository/330221980/v1.0.1 2022-09-14T19:13:32Z Bugfixes and build improvements <h2>What's Changed</h2> <ul> <li>build: hard dependencies by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/g105b/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/g105b">@g105b</a> in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1291203017" data-permission-text="Title is private" data-url="https://github.com/phpgt/DataObject/issues/8" data-hovercard-type="pull_request" data-hovercard-url="/phpgt/DataObject/pull/8/hovercard" href="https://github.com/phpgt/DataObject/pull/8">#8</a></li> <li>maintenance: dependabot by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/g105b/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/g105b">@g105b</a> in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1364920196" data-permission-text="Title is private" data-url="https://github.com/phpgt/DataObject/issues/10" data-hovercard-type="pull_request" data-hovercard-url="/phpgt/DataObject/pull/10/hovercard" href="https://github.com/phpgt/DataObject/pull/10">#10</a></li> <li>fix: nested objects with custom classes by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/g105b/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/g105b">@g105b</a> in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1373455802" data-permission-text="Title is private" data-url="https://github.com/phpgt/DataObject/issues/12" data-hovercard-type="pull_request" data-hovercard-url="/phpgt/DataObject/pull/12/hovercard" href="https://github.com/phpgt/DataObject/pull/12">#12</a></li> </ul> <h2>New Contributors</h2> <ul> <li><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/g105b/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/g105b">@g105b</a> made their first contribution in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1291203017" data-permission-text="Title is private" data-url="https://github.com/phpgt/DataObject/issues/8" data-hovercard-type="pull_request" data-hovercard-url="/phpgt/DataObject/pull/8/hovercard" href="https://github.com/phpgt/DataObject/pull/8">#8</a></li> </ul> <p><strong>Full Changelog</strong>: <a class="commit-link" href="https://github.com/phpgt/DataObject/compare/v1.0.0...v1.0.1"><tt>v1.0.0...v1.0.1</tt></a></p> g105b tag:github.com,2008:Repository/330221980/v1.0.0 2021-03-15T18:07:14Z v1 release <p>The first public stable release of the most boring PHP library has just landed! <code>DataObject</code> adds such simple functionality to projects, but it is an important staple to how repositories within PHP.Gt and beyond will interoperate.</p> <p>Have fun and stay productive!</p> g105b tag:github.com,2008:Repository/330221980/v0.4.0 2021-01-18T23:16:09Z JSON functionality refactored into own repository <p>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.</p> <p>See <a href="https://github.com/PhpGt/Json">https://github.com/PhpGt/Json</a> for the refactored functionality that builds upon this repository.</p> g105b