This repository was archived by the owner on Jul 28, 2023. It is now read-only.
Releases: spaceonfire/value-object
Releases · spaceonfire/value-object
1.7.1
1.7.0
Added
- Method
equals()now available on any value object with strict value comparison.
Deprecated
IntValue::equalsTo()method deprecated and should be replaced with newequals()method.
Fixed
- Enum value object now accept only public constants (#5).
- Enum value objects now strictly compared due to new method
equals().
1.6.0
Deprecated
- Classes
spaceonfire\ValueObject\Bridge\LaminasHydrator\BooleanStrategyandspaceonfire\ValueObject\Bridge\LaminasHydrator\NullableStrategy
were moved tospaceonfire/laminas-hydrator-bridgelibrary. Class alias provided for backwards compatibility,
but will be removed in next major release.
1.5.0
Updated NullableStrategy
Added
- Added optional
$nullValuePredicateargument toNullableStrategyconstructor
that allows you to specify which values should be considered asnull
1.3.1: small improvements in value object hydrator strategy
Fixed
- Make value object strategy more flexible
Added boolean hydrator strategy
Added
- Added
BooleanStrategy
Added Nullable hydrator strategy
Added
- Added
NullableStrategy
Some code improvements
Added
- Added phpDoc comments as possible
- Updated code style checks
- Added PHPStan linter
- Make
UuidValuenon abstract class
For more info see diff