Skip to content

Version 1.0.0-alpha.1

Pre-release
Pre-release
Compare
Choose a tag to compare
@jmalloc jmalloc released this 20 Oct 09:18
· 69 commits to master since this release
  • [BC] Removed deep parameter from Parity::compare() and related convenience methods
  • [BC] Removed ComparableInterface and Comparator
  • [BC] Removed AbstractComparable (replaced with AbstractExtendedComparable which does not implement any comparable interface)
  • [NEW] Added AnyComparableInterface and SelfComparableInterface
  • [NEW] Added ComparatorInterface::__invoke()
  • [NEW] Added ObjectIdentityComparator, StrictPhpComparator and PhpComparator
  • [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