Skip to content

Commit 425df39

Browse files
committed
Update ExpressionResultTest.php
1 parent 8bccc4f commit 425df39

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/PHPStan/Analyser/ExpressionResultTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,10 @@ public static function dataIsAlwaysTerminating(): array
7979
'fn() => yield (exit());',
8080
false,
8181
],
82+
[
83+
'(fn() => exit())();', // immediately invoked function expression
84+
true,
85+
],
8286
[
8387
'@exit();',
8488
true,

0 commit comments

Comments
 (0)