diff --git a/src/Protocol/SymbolInformation.php b/src/Protocol/SymbolInformation.php index 7ee34d0..d173426 100644 --- a/src/Protocol/SymbolInformation.php +++ b/src/Protocol/SymbolInformation.php @@ -90,7 +90,7 @@ class SymbolInformation } if ($node instanceof Node\Name) { $symbol->name = (string)$node; - } else if( + } else if ( $node instanceof Node\Expr\FuncCall && $node->name instanceof Node\Name && strtolower((string)$node->name) === 'define'