Skip to content

Commit f2608e1

Browse files
committed
Update ExpressionResultTest.php
1 parent d6b7449 commit f2608e1

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
@@ -117,6 +117,10 @@ public static function dataIsAlwaysTerminating(): array
117117
'(function() { exit(); })();',
118118
true,
119119
],
120+
[
121+
'function () {};',
122+
false,
123+
],
120124
[
121125
'call_user_func(function() { exit(); });',
122126
true,

0 commit comments

Comments
 (0)