protected function getCalledFunctionName(Node $node) { if (!$node instanceof FuncCall) { throw new LogicException('Node must be an instance of FuncCall, found: ' . get_class($node)); } if ($node->name instanceof Name) { return (string) $node->name; } return ''; }