Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fix PHPUnit 11 compatibility #6202

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/Symfony/Bundle/Test/Constraint/ArraySubsetTrait.php
Expand Up @@ -14,6 +14,7 @@
namespace ApiPlatform\Symfony\Bundle\Test\Constraint;

use SebastianBergmann\Comparator\ComparisonFailure;
use SebastianBergmann\Exporter\Exporter;

/**
* Constraint that asserts that the array it is evaluated for has a specified subset.
Expand Down Expand Up @@ -67,7 +68,7 @@ private function _evaluate($other, string $description = '', bool $returnResult
*/
public function toString(): string
{
return 'has the subset '.$this->exporter()->export($this->subset);
return 'has the subset '.(new Exporter())->export($this->subset);
}

/**
Expand Down