Skip to content

Commit 933a797

Browse files
committed
Update ExpressionResultTest.php
1 parent 707aa79 commit 933a797

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
@@ -81,6 +81,10 @@ public static function dataIsAlwaysTerminating(): array
8181
'fn() => yield (exit());',
8282
false,
8383
],
84+
[
85+
'(fn() => exit())();', // immediately invoked function expression
86+
true,
87+
],
8488
[
8589
'@exit();',
8690
true,

0 commit comments

Comments
 (0)