Skip to content

Commit

Permalink
fix: fix PHPUnit 11 compatibility (#6202)
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentchalamon committed Mar 5, 2024
1 parent 8206b27 commit 54638d3
Showing 1 changed file with 2 additions and 1 deletion.
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

0 comments on commit 54638d3

Please sign in to comment.