Skip to content

Release 6.0.12 not longer compatible with PHPUnit 9 #463

@alexander-schranz

Description

@alexander-schranz

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.

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