Releases: phpgt/TypeSafeGetter
March 2026 release
What's Changed
- tweak: callable docblock syntax
- build: php8.1 compatibility
- ci: upgrade workflow
- Remove scrutinizer by @g105b in #45
- Add JetBrains sponsorship to README with H1 heading by @g105b in #46
Full Changelog: v1.3.2...v1.3.3
Tweak: getDateTime microsecond precision
In this minor patch release, a bug is fixed that allows getDateTime to deal with floating point values, to preserve the microsecond accuracy of the timestamp.
Terminology change getObject() to getInstance()
For inclusion by other dependent libraries, the terminology getObject has been renamed to getInstance. This is to avoid the clash with PHP.Gt/DataObject's existing getObject() function.
getObject(), CI, and QA improvements
CallbackTypeSafeGetter
Callback interface introduced for use within php.gt/filecache.
GetClass removed until support for Generics is more mature.
Unit tests
Even though this repository's responsibility is simply getting a value with a possible type-cast, functionality has now been unit tested in order to ensure how casting works, how nullable fields are checked, and most importantly getting ready for implementing Generic class getting (tracked in issue 4).
Proxy release
This release is made to rectify a caching issue in Packagist due to a mistake pushing a previous version.
NullableTypeSafeGetter trait
This minor release introduces the NullableTypeSafeGetter trait, which removes boilerplate code found throughout PHP.Gt repositories.
NullableTypeSafeGetter implements all functions of the TypeSafeGetter trait, apart from get, which needs to be defined by the implementing class.
Nullable DateTime
This minor release changes the signature of getDateTime to allow nullable returns, for consistency with other getters.
v1 release
v1.0.0 Add readme