Skip to content

Commit bc181de

Browse files
Try
1 parent 83f1509 commit bc181de

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Analyser/MutatingScope.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2347,7 +2347,11 @@ static function (Node $node, Scope $scope) use ($arrowScope, &$arrowFunctionImpu
23472347
/** @var non-empty-string $name */
23482348
$name = $node->name->value;
23492349
$functionName = new Name($name);
2350-
} elseif ($node->name instanceof FuncCall && $node->name->name instanceof Name) {
2350+
} elseif (
2351+
$node->name instanceof FuncCall
2352+
&& $node->name->name instanceof Name
2353+
&& $node->name->isFirstClassCallable()
2354+
) {
23512355
$functionName = $node->name->name;
23522356
}
23532357

0 commit comments

Comments
 (0)