Skip to content

Commit 43f3fcc

Browse files
Merge branch '6.4' into 7.3
* 6.4: Fix
2 parents a12b28a + 90860ac commit 43f3fcc

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)