Skip to content

Commit b00f40b

Browse files
committed
Update ExpressionResultTest.php
1 parent edd8755 commit b00f40b

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
@@ -101,6 +101,10 @@ public static function dataIsAlwaysTerminating(): array
101101
'exit() ?? $x;',
102102
true,
103103
],
104+
[
105+
'(function() { exit(); })();',
106+
true,
107+
],
104108
[
105109
'call_user_func(function() { exit(); });',
106110
true,

0 commit comments

Comments
 (0)