Releases: spiks/user-input-processor
Releases · spiks/user-input-processor
0.10.1
0.10.0
New features:
New denormalizers:
- DateTimeRangeDenormalizer.
- TimeZoneDenormalizer
- EnumerationDenormalizer
- UniqueArrayDenormalizer
0.9.0
New features:
- New denormalizer:
ObjectPropertyDenormalizer
(it's experimental API!). - Internal and external APIs are fully covered with Psalm and PHPStan types.
Breaking changes:
- Minimum supported version of PHP is 8.1 now.
- Method
ObjectDenormalizer::denormalizeStaticFields
was renamed toObjectDenormalizer::denormalize
. The third argument now accepts array instead ofObjectStaticFields
object.ObjectStaticFields
class was removed. - Method
ObjectDenormalizer::denormalizeDynamicFields
was removed withObjectDiscriminatorFields
class. Constraint violationWrongDiscriminatorValue
is removed too. ConstraintViolationCollection
was removed. It was replaced with an array ofConstraintViolationInterface
everywhere.- Constant
WrongPropertyType::JSON_TYPE_INTEGER
was renamed toWrongPropertyType::JSON_TYPE_NUMBER
. Its value was changed tonumber
too.
Bug fixes:
- Method
WrongPropertyType::guessGivenType()
now distinguishes between JSON arrays and JSON objects. Previously, it always reported both data types asWrongPropertyType::JSON_TYPE_ARRAY
. - In rare cases
WrongPropertyType::guessGivenType()
could fail because it used variable withmixed
type in concatenation when throwed exception.
0.8.0
0.7.0
0.6.2
Merge pull request #47 from flaksp/fix/is-indexed-array-function
0.6.1
0.6.0
0.5.0
0.4.2
Allow int
type in FloatDenormalizer
.