Skip to content

Commit f10c850

Browse files
committed
Update ExpressionResultTest.php
1 parent eeeccb4 commit f10c850

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
@@ -99,6 +99,10 @@ public static function dataIsAlwaysTerminating(): array
9999
'exit() ?? $x;',
100100
true,
101101
],
102+
[
103+
'(function() { exit(); })();',
104+
true,
105+
],
102106
[
103107
'call_user_func(function() { exit(); });',
104108
true,

0 commit comments

Comments
 (0)