coduo/php-matcher

Release 6.0.12 not longer compatible with PHPUnit 9

alexander-schranz opened this issue · 1 comments

With the new release of php-matcher there seems to be incompatibility added to PHPUnit 9:

PHP Fatal error:  Declaration of Coduo\PHPMatcher\PHPUnit\PHPMatcherConstraint::fail(
mixed $other, string $description, ?SebastianBergmann\Comparator\ComparisonFailure $comparisonFailure = null
): never

must be compatible with

PHPUnit\Framework\Constraint\Constraint::fail(
$other, $description, ?SebastianBergmann\Comparator\ComparisonFailure $comparisonFailure = null
): void
in /home/runner/work/SuluContentBundle/SuluContentBundle/vendor/coduo/php-matcher/src/PHPUnit/PHPMatcherConstraint.php on line 61

There should no Parameter Types added to the PHPMatcherConstraint they currently break the functionality. Only Return Types should had added to the PHPMatcherConstraint to make it compatible with PHPUnit 10.

@alexander-schranz I made a fork to get back PHPUnit 9 compatibility.