Skip to content

Commit 72d301a

Browse files
Merge branch '7.4' into 8.0
* 7.4: Fix Fix issue with merging union type with a nullable union type
2 parents 258159e + 73a4466 commit 72d301a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Legacy/SymfonyTestsListenerTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ public function endTest($test, $time): void
297297
}
298298

299299
if (self::$expectedDeprecations) {
300-
if (!$test instanceof TestCase || !\in_array($test->getStatus(), [BaseTestRunner::STATUS_SKIPPED, BaseTestRunner::STATUS_INCOMPLETE], true)) {
300+
if ($test instanceof TestCase && !\in_array($test->getStatus(), [BaseTestRunner::STATUS_SKIPPED, BaseTestRunner::STATUS_INCOMPLETE], true)) {
301301
$test->addToAssertionCount(\count(self::$expectedDeprecations));
302302
}
303303

0 commit comments

Comments
 (0)