sebastian/comparator
sebastian/comparator compares PHP values for equality with type-aware comparators. Use the Factory to select the right comparator and get helpful ComparisonFailure details when assertions fail—ideal for test suites and tooling.
DateIntervalComparator for comparing DateInterval objects with a delta toleranceDOMNodeComparator crashes or returns false positives when DOMNode::C14N() failsDOMNodeComparator reports XML documents as equal when they differ only in commentsDateTimeComparator does not track processed pairs, producing misleading diffs in nested structuresComparisonFailure cannot be serialized when stack trace contains non-serializable objectsDOMNodeComparator crashes or returns false positives when DOMNode::C14N() failsDOMNodeComparator reports XML documents as equal when they differ only in commentsDateTimeComparator does not track processed pairs, producing misleading diffs in nested structuresComparisonFailure cannot be serialized when stack trace contains non-serializable objectsStrictUnifiedDiffOutputBuilder instead of UnifiedDiffOutputBuilderArrayComparator sorts objects by spl_object_id(), breaking canonicalized equality for arrays of equal objectsArrayComparator sorts objects by spl_object_id(), breaking canonicalized equality for arrays of equal objectssort() in ArrayComparator produces non-deterministic results for arrays with mixed typessort() in ArrayComparator produces non-deterministic results for arrays with mixed typesSplObjectStorage methods that will be deprecated in PHP 8.5ClosureComparator failsSebastianBergmann\Comparator\Comparator should not have been marked as private implementation detail of this librarySplObjectStorage methods that will be deprecated in PHP 8.5SplObjectStorage methods that will be deprecated in PHP 8.5Closure objectsINF is considered equal to -INFINF is considered equal to -INFBcMath\Number objectsUninitialized string offset -1 warningHow can I help you explore Laravel packages today?