Use short array notation
parent
a1b5f0631e
commit
ead07da2d7
|
@ -103,11 +103,11 @@ class TextDocument
|
||||||
$document = $this->project->getDocument($textDocument->uri);
|
$document = $this->project->getDocument($textDocument->uri);
|
||||||
$node = $document->getNodeAtPosition($position);
|
$node = $document->getNodeAtPosition($position);
|
||||||
if ($node === null) {
|
if ($node === null) {
|
||||||
return array();
|
return [];
|
||||||
}
|
}
|
||||||
$def = $document->getDefinitionByNode($node);
|
$def = $document->getDefinitionByNode($node);
|
||||||
if ($def === null) {
|
if ($def === null) {
|
||||||
return array();
|
return [];
|
||||||
}
|
}
|
||||||
return Location::fromNode($def);
|
return Location::fromNode($def);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue