-
-
Notifications
You must be signed in to change notification settings - Fork 86
Description
PHPUnit 10 was released few days ago and it's now fully tped.
So the Coduo\PHPMatcher\PHPUnit\PHPMatcherConstraint
will not work anymore because override methods are not compatible with the parent class.
An error message from my CI:
[2023-02-10T16:27:49.903408+01:00] php.CRITICAL: Fatal Compile Error: Declaration of Coduo\PHPMatcher\PHPUnit\PHPMatcherConstraint::fail($other, $description, ?SebastianBergmann\Comparator\ComparisonFailure $comparisonFailure = null): void must be compatible with PHPUnit\Framework\Constraint\Constraint::fail(mixed $other, string $description, ?SebastianBergmann\Comparator\ComparisonFailure $comparisonFailure = null): never {"exception":"[object] (Symfony\\Component\\ErrorHandler\\Error\\FatalError(code: 0): Compile Error: Declaration of Coduo\\PHPMatcher\\PHPUnit\\PHPMatcherConstraint::fail($other, $description, ?SebastianBergmann\\Comparator\\ComparisonFailure $comparisonFailure = null): void must be compatible with PHPUnit\\Framework\\Constraint\\Constraint::fail(mixed $other, string $description, ?SebastianBergmann\\Comparator\\ComparisonFailure $comparisonFailure = null): never at /var/www/project/vendor/coduo/php-matcher/src/PHPUnit/PHPMatcherConstraint.php:61)"} []