Releases: karriereat/json-decoder
Releases · karriereat/json-decoder
v5.0.0
Added
- Support for PHP 8.2.
- Support for typed properties (in addition to the annotated properties)
- [BREAKING] Type hints and return types
Changed
- [BREAKING] Constructor order of
Bindings
- [BREAKING] Argument order of
transform
and transferRaw
in JsonDecoder
- Set dynamic properties only if
AllowDynamicProperties
attribute is set (on PHP 8.2. and greater)
- Linting to
pint
- Unit tests to
pest
Removed
For further information you can also take a look at the UPGRADE.md.
v4.2.0
Added
- Support for using array-keys in
ArrayBinding
(#52, #55)
v4.1.1
Fixed
- Avoid IDE warnings when passing
Closure
to CallbackBinding
(#47, #43)
v4.0.3
Fixed
- Too strict param type in
transform
method
v4.0.2
Fixed
- Another issue where CallbackBinding wasn't handled.
v4.0.1
Fixed
- Still handle CallbackBinding when property name doesn't match a JSON fieldname.
v4.0.0
Added
- support for magic class properties
- auto casing for json field - class properties mapping
- PHP CS Fixer for linting and fixing code style
Changed
Removed
v3.1.0
Added
DateTimeBinding
for parsing date string
v3.0.0
Changed
- Update dependencies to be compatible with PHP 7.4
- Switch to PSR-12 linting
Removed
- Support for PHP 7.0 and 7.1