Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Comparator Laravel Package

sebastian/comparator

sebastian/comparator compares PHP values for equality with type-specific comparators. Use the Factory to select the right comparator for two values and assertEquals() to verify matches, throwing a ComparisonFailure when differences are found.

View on GitHub
Deep Wiki
Context7
8.1.1

Fixed

  • #140: sort() in ArrayComparator produces non-deterministic results for arrays with mixed types
7.1.5

Fixed

  • #140: sort() in ArrayComparator produces non-deterministic results for arrays with mixed types
8.1.0

Added

8.0.0

Removed

  • Removed support for PHP 8.3
7.1.4

Changed

  • #134: Suppress warning introduced in PHP 8.5
6.3.3

Changed

  • #134: Suppress warning introduced in PHP 8.5
5.0.5

Changed

  • #134: Suppress warning introduced in PHP 8.5
5.0.4

Changed

  • Do not use SplObjectStorage methods that will be deprecated in PHP 8.5
7.1.3

Changed

  • #130: Provide a diff when ClosureComparator fails
7.1.2

Fixed

  • SebastianBergmann\Comparator\Comparator should not have been marked as private implementation detail of this library
7.1.1

Changed

  • Do not use SplObjectStorage methods that will be deprecated in PHP 8.5
6.3.2

Changed

  • Do not use SplObjectStorage methods that will be deprecated in PHP 8.5
7.1.0

Added

  • #127: Support for comparing Closure objects
7.0.1

Fixed

  • #122: INF is considered equal to -INF
6.3.1

Fixed

  • #122: INF is considered equal to -INF
7.0.0

Removed

  • Removed support for PHP 8.2
6.3.0

Added

  • #121: Support for BcMath\Number objects
6.2.1

Fixed

  • #119: Uninitialized string offset -1 warning
6.2.0

Changed

  • #117: Remove common prefixes and suffixes from actual and expected single-line strings
6.1.1

Fixed

  • Reverted #113 as it broke backward compatibility
5.0.3

Fixed

  • Reverted #113 as it broke backward compatibility
6.1.0

Added

  • Specialized comparator for enumerations
6.0.2

Fixed

  • #112: Arrays with different keys and the same values are considered equal in canonicalize mode
5.0.2

Fixed

  • #112: Arrays with different keys and the same values are considered equal in canonicalize mode
6.0.1

Changed

  • This project now uses PHPStan instead of Psalm for static analysis
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
enqueue/dsn
bunny/bunny
enqueue/test
enqueue/null
enqueue/amqp-tools
milesj/emojibase
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport