All notable changes to data-transfer-object will be documented in this file
- Allow the traversal of collections with string keys
- Cast nested collections (#117)
- Support PHP 8
- Group type errors (#130)
- Support for
array<int, string>syntax (#136)
- Add PHPStan extension to support
checkUninitializedProperties: true(#135)
- Validator for typed 7.4 properties (#109)
- Add support for typed properties to DTO casting in PHP 7.4
- Bump minimum required PHP version to 7.4
- Support for nested immutable DTOs (#86)
- Ignore static properties when serializing (#88)
- DataTransferObjectError::invalidType : get actual type before mutating $value for the error message (#81)
- Improve extendability of DTOs (#80)
- Ignore static properties (#82)
- Add
DataTransferObject::arrayOf(#83)
- Improved performance by adding a cache (#79)
- Add
FlexibleDataTransferObjectwhich allows for unknown properties to be ignored
- Add
iterableanditerable<\Type>support
- Allow a DTO to be constructed without an array (#68)
- Improve type error message
- Add DataTransferObjectCollection::items()
- Support immutability
- Fixes #47, allowing empty dto's to be cast to using an empty array.
- Nested array DTO casting supported.
- Properly support
float.
- Fix uninitialised error with default value.
- Don't use
allValuesanymore.
- Support nested collections in collections
- Cleanup code
- Remove too much magic in nested array casting
- Support nested
toArrayin collections.
- Support nested
toArray.
- Add strict type declarations
- Add auto casting of nested DTOs
- Rename to data-transfer-object
- Add uninitialized errors.
- Support instanceof on interfaces when type checking
- proper support for collections of value objects
- initial release