All Notable changes to flipboxdigital\transform
will be documented in this file
Scope::transform()
would always return an array when it's possible to return anything.
- Improved docblock return types for enhanced IDE code hinting
TransformerHelper::isTransformer()
has been deprecated. UseTransformerHelper::isTransformable()
- Some string values such as
trim
orsystem
are technically callable, but mistaken for a nested callable.
- Refactored many aspect of this package. The core concept remains the same, but code has been trimmed and, assumptions have been removed and it's much more flexible and easy to use.
Scope::parseNestedValue
should be used when parsing nested values as it will handle includes, excludes gracefully- The concept of simple item and collection transformers which do not support advanced scope-related features
- ‘extra’ attribute types that are an array are only verified if a type is specified
- Allowing ‘extra’ attributes to be passed when transforming
- Compatibility with PHP 7.2
- Helper classes are not appended with 'Helper'.
- Introducing Mapper trait and helper for assisting in switching transformed array keys
- Transformer traits now enforce strict Scope params
- Issue where
Scope::parseValue
attempt to call anonymous function on a string. Ref: #1
- transformer
ObjectToArray
trait to accept the property data type when normalizing
- Initial release!