Skip to content

Commit 9df38e9

Browse files
committed
Update ExpressionResultTest.php
1 parent b6beb93 commit 9df38e9

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
@@ -113,6 +113,10 @@ public static function dataIsAlwaysTerminating(): array
113113
'call_user_func(fn() => exit());',
114114
true,
115115
],
116+
[
117+
'(function() { exit(); })();',
118+
true,
119+
],
116120
[
117121
'call_user_func(function() { exit(); });',
118122
true,

0 commit comments

Comments
 (0)