Skip to content

Releases: PhpGt/TypeSafeGetter

Tweak: getDateTime microsecond precision

28 Apr 14:43
f760c05
Compare
Choose a tag to compare

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()

28 Apr 12:59
17807fb
Compare
Choose a tag to compare

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

27 Apr 14:53
7874a16
Compare
Choose a tag to compare

What's Changed

  • New function: getObject() by @g105b in #37
  • maintenance: dependabot by @g105b in #9
  • Ci improvements for QA and Matrix builds by @g105b in #40

Full Changelog: v1.2.4...v1.3.0

CallbackTypeSafeGetter

09 Jul 12:30
ebffd75
Compare
Choose a tag to compare

Callback interface introduced for use within php.gt/filecache.

GetClass removed until support for Generics is more mature.

Unit tests

07 Jul 09:58
23d0093
Compare
Choose a tag to compare

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

30 Jan 14:19
Compare
Choose a tag to compare

This release is made to rectify a caching issue in Packagist due to a mistake pushing a previous version.

NullableTypeSafeGetter trait

30 Jan 12:21
Compare
Choose a tag to compare

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

29 Jan 11:47
ed302b1
Compare
Choose a tag to compare

This minor release changes the signature of getDateTime to allow nullable returns, for consistency with other getters.

v1 release

16 Jan 17:41
Compare
Choose a tag to compare
v1.0.0

Add readme