diff --git a/src/Server/TextDocument.php b/src/Server/TextDocument.php index 9192630..f98ec57 100644 --- a/src/Server/TextDocument.php +++ b/src/Server/TextDocument.php @@ -103,11 +103,11 @@ class TextDocument $document = $this->project->getDocument($textDocument->uri); $node = $document->getNodeAtPosition($position); if ($node === null) { - return array(); + return []; } $def = $document->getDefinitionByNode($node); if ($def === null) { - return array(); + return []; } return Location::fromNode($def); }