Skip to content

PHPUnit 10 support #455

@jdecool

Description

@jdecool

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)"} []

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions