1
0
Fork 0

Use short array notation

pull/64/head
Kaloyan Raev 2016-10-11 10:08:24 +03:00
parent a1b5f0631e
commit ead07da2d7
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}