This commit is contained in:
2025-02-04 12:40:43 +03:00
parent 4bcb4c60dd
commit 50343d5a87
372 changed files with 9019 additions and 6684 deletions

View File

@@ -2,12 +2,6 @@
All notable changes are documented in this file using the [Keep a CHANGELOG](http://keepachangelog.com/) principles.
## [7.0.0] - 2025-02-07
### Removed
* Removed support for PHP 8.2
## [6.3.0] - 2025-01-06
### Added
@@ -210,7 +204,6 @@ All notable changes are documented in this file using the [Keep a CHANGELOG](htt
* Added `SebastianBergmann\Comparator\Factory::reset()` to unregister all non-default comparators
* Added support for `phpunit/phpunit-mock-objects` version `^5.0`
[7.0.0]: https://github.com/sebastianbergmann/comparator/compare/6.3...main
[6.3.0]: https://github.com/sebastianbergmann/comparator/compare/6.2.1...6.3.0
[6.2.1]: https://github.com/sebastianbergmann/comparator/compare/6.2.0...6.2.1
[6.2.0]: https://github.com/sebastianbergmann/comparator/compare/6.1.1...6.2.0

View File

@@ -26,12 +26,11 @@
"issues": "https://github.com/sebastianbergmann/comparator/issues",
"security": "https://github.com/sebastianbergmann/comparator/security/policy"
},
"minimum-stability": "dev",
"prefer-stable": true,
"require": {
"php": ">=8.3",
"sebastian/diff": "^7.0",
"sebastian/exporter": "^7.0",
"php": ">=8.2",
"sebastian/diff": "^6.0",
"sebastian/exporter": "^6.0",
"ext-dom": "*",
"ext-mbstring": "*"
},
@@ -39,11 +38,11 @@
"ext-bcmath": "For comparing BcMath\\Number objects"
},
"require-dev": {
"phpunit/phpunit": "^12.0-dev"
"phpunit/phpunit": "^11.4"
},
"config": {
"platform": {
"php": "8.3.0"
"php": "8.2.0"
},
"optimize-autoloader": true,
"sort-packages": true
@@ -60,7 +59,8 @@
},
"extra": {
"branch-alias": {
"dev-main": "7.0-dev"
"dev-main": "6.2-dev"
}
}
}

View File

@@ -25,8 +25,8 @@ use SebastianBergmann\Exporter\Exporter;
*/
class ScalarComparator extends Comparator
{
private const int OVERLONG_THRESHOLD = 40;
private const int KEEP_CONTEXT_CHARS = 25;
private const OVERLONG_THRESHOLD = 40;
private const KEEP_CONTEXT_CHARS = 25;
public function accepts(mixed $expected, mixed $actual): bool
{