JsonMapper JsonMapper Versions Save

Map nested JSON structures to PHP classes

2.14.4

1 year ago

[2.14.4] - 2023-01-19

Fixed

  • Map to array of enums when combination of PHPDoc block and native array typehint. PR#152. Thanks to uchuu-me for reporting the issue.

2.14.3

1 year ago

[2.14.3] - 2023-01-10

Fixed

  • Namespace resolving is unable to resolve when using partial use combined with nested namespace in PHPdoc PR#150.

2.14.2

1 year ago

[2.14.2] - 2023-01-07

Added

  • Add PHP 8.2 to build matrix PR#149.

Fixed

  • Undefined array key 0 when using object construction middleware PR#148. Thanks to template-provider for reporting the issue.

2.14.1

1 year ago

[2.14.1] - 2022-11-15

Fixed

  • Cannot map to native php types using constructor middleware PR#144. Thanks to template-provider for reporting the issue.

2.14.0

1 year ago

[2.14.0] - 2022-11-01

Added

  • Constructor middleware; Add support for mapping to class name PR#141

2.13.0

1 year ago

[2.13.0] - 2022-08-17

Added

  • Support multi-dimensional array notation PR#137

Fixed

2.12.0

2 years ago

Fixed

  • Cannot lookup property of namespace in parent class PR#135 Thanks to jg-development for reporting the issue

2.11.1

2 years ago

[2.11.1] - 2022-03-08

Fixed

2.11.0

2 years ago

[2.11.0] - 2022-02-09

Changed

  • Merging of the property map is optimised with an early return if left side and right side are equal PR#128

Fixed

  • Flex psr/log constraints PR#129

2.10.0

2 years ago

[2.10.0] - 2022-01-16

Added

  • Support was added for strict scalar casting PR#119 Thanks to template-provider for reporting the issue
  • All Map functions now return the mapped object(s) and uses Psalm to assist with autocompletion. PR#122

Fixed

  • Replace duplicates in middleware with object wrapper calls. PR#123
  • Correct code style issues. PR#124
  • Return empty array for union type with an array type when value is an empty array. PR#125 Thanks to template-provider for reporting the issue