Version 1.0.0-alpha.1
Pre-release
Pre-release
- [BC] Removed
deep
parameter fromParity::compare()
and related convenience methods - [BC] Removed
ComparableInterface
andComparator
- [BC] Removed
AbstractComparable
(replaced withAbstractExtendedComparable
which does not implement any comparable interface) - [NEW] Added
AnyComparableInterface
andSelfComparableInterface
- [NEW] Added
ComparatorInterface::__invoke()
- [NEW] Added
ObjectIdentityComparator
,StrictPhpComparator
andPhpComparator
- [NEW] Added
ParityComparator
which compares numeric types in a more natural manner - [IMPROVED] Comparators are now use other comparators to handle unsupported comparisons (composition rather than extension)
- [IMPROVED] Deep comparison no longer compares arrays by size first, allows for more natural ordering based on elements