Skip to content

Commit 73a4466

Browse files
Merge branch '7.3' into 7.4
* 7.3: Fix Fix issue with merging union type with a nullable union type
2 parents cc4c0a8 + 43f3fcc commit 73a4466

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
@@ -306,7 +306,7 @@ public function endTest($test, $time): void
306306
}
307307

308308
if (self::$expectedDeprecations) {
309-
if (!$test instanceof TestCase || !\in_array($test->getStatus(), [BaseTestRunner::STATUS_SKIPPED, BaseTestRunner::STATUS_INCOMPLETE], true)) {
309+
if ($test instanceof TestCase && !\in_array($test->getStatus(), [BaseTestRunner::STATUS_SKIPPED, BaseTestRunner::STATUS_INCOMPLETE], true)) {
310310
$test->addToAssertionCount(\count(self::$expectedDeprecations));
311311
}
312312

0 commit comments

Comments
 (0)