Skip to content

Commit 75849d2

Browse files
Psalm does not see that $emitCalledEvent may be false
1 parent c882364 commit 75849d2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Framework/TestSuite.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -636,6 +636,7 @@ private function invokeMethodsBeforeFirstTest(Event\Emitter $emitter, Event\Test
636636
} catch (Throwable $t) {
637637
}
638638

639+
/** @psalm-suppress RedundantCondition */
639640
if ($emitCalledEvent) {
640641
$emitter->testBeforeFirstTestMethodCalled(
641642
$this->name,

0 commit comments

Comments
 (0)