Skip to content

Commit 54638d3

Browse files
fix: fix PHPUnit 11 compatibility (#6202)
1 parent 8206b27 commit 54638d3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Symfony/Bundle/Test/Constraint/ArraySubsetTrait.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
namespace ApiPlatform\Symfony\Bundle\Test\Constraint;
1515

1616
use SebastianBergmann\Comparator\ComparisonFailure;
17+
use SebastianBergmann\Exporter\Exporter;
1718

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

7374
/**

0 commit comments

Comments
 (0)