Skip to content

3.0.0

Compare
Choose a tag to compare
@Seldaek Seldaek released this 26 May 18:28
3426bd5
  • Break: Renamed EmptyConstraint, replace it with MatchAllConstraint
  • Break: Unlikely to affect anyone but strictly speaking a breaking change, *.* and such variants will not match all dev-* versions anymore, only * does
  • Break: ConstraintInterface is now considered internal/private and not meant to be implemented by third parties anymore
  • Added Intervals class to check if a constraint is a subsets of another one, and allow compacting complex MultiConstraints into simpler ones
  • Added CompilingMatcher class to speed up constraint matching against simple Constraint instances
  • Added MatchAllConstraint and MatchNoneConstraint which match everything and nothing
  • Added more advanced optimization of contiguous constraints inside MultiConstraint
  • Added tentative support for PHP 8
  • Fixed ConstraintInterface::matches to be commutative in all cases