All notable changes to data-transfer-object
will be documented in this file
- Add support for using
collection
internally
This might be a breaking change, but it was required for a bugfix
- Prevent DataTransferObjectCollection from iterating over array copy (#166)
- Fix for incorrect return type (#164)
- 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
FlexibleDataTransferObject
which allows for unknown properties to be ignored
- Add
iterable
anditerable<\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
allValues
anymore.
- Support nested collections in collections
- Cleanup code
- Remove too much magic in nested array casting
- Support nested
toArray
in 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