Skip to content

Releases: karriereat/json-decoder

v3.0.0

25 Mar 08:25
Compare
Choose a tag to compare

Changed

  • Update dependencies to be compatible with PHP 7.4
  • Switch to PSR-12 linting

Removed

  • Support for PHP 7.0 and 7.1

v2.2.1

05 Mar 10:27
bb720a7
Compare
Choose a tag to compare

Added

  • validate function for checking the isRequired flag for Bindings

Changed

  • transform Binding to an abstract class and unify functionality from AliasBinding, ArrayBinding & FieldBinding

Fixed

  • check for isRequired flag is only executed when applicable

v2.2.0

11 Jan 09:57
cf0b3f9
Compare
Choose a tag to compare

Features

  • add JsonDecoder instance as second parameter to the callback function signature for CallbackBindings.

v2.1.2

01 Oct 06:01
5788347
Compare
Choose a tag to compare
Merge pull request #21 from fetzi/bugfix/transform-null-handling

Add empty check for transform json data

v2.1.1

02 Mar 07:22
afda5cd
Compare
Choose a tag to compare

Bugfixes

  • Allow raw transform for private and protected class properties

v2.1.0

01 Mar 11:43
e23c8e7
Compare
Choose a tag to compare

Features

  • add decodeMutliple method to decode root level arrays
  • add type hints for decode and decodeMultiple

2.0.0

19 Dec 07:50
cc763a4
Compare
Choose a tag to compare

Dropped PHP 5.6 support

1.2.0

03 Oct 11:26
Compare
Choose a tag to compare
  • Add isRequired Flag to Bindings
  • Better test coverage

1.1.1

02 Aug 13:46
Compare
Choose a tag to compare
v1.1.1

fix bug with null values for array binding fields

1.1.0

24 May 09:42
Compare
Choose a tag to compare

phpspec tests & PropertyAccessor refactorings