- Stable release (no API changes since 1.0.0-alpha.2).
- [BC]
SelfComparableInterfacenow requires the comparison operands to be the exactly same type. - [NEW] Added
SubClassComparableInterface, similar to the previous behavior ofSelfComparableInterface
- [BC] Removed
deepparameter fromParity::compare()and related convenience methods - [BC] Removed
ComparableInterfaceandComparator - [BC] Removed
AbstractComparable(replaced withAbstractExtendedComparablewhich does not implement any comparable interface) - [NEW] Added
AnyComparableInterfaceandSelfComparableInterface - [NEW] Added
ComparatorInterface::__invoke() - [NEW] Added
ObjectIdentityComparator,StrictPhpComparatorandPhpComparator - [NEW] Added
ParityComparatorwhich 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
- Initial release