From ead07da2d7a388ea3a627e79e250f9019dea7901 Mon Sep 17 00:00:00 2001 From: Kaloyan Raev Date: Tue, 11 Oct 2016 10:08:24 +0300 Subject: [PATCH] Use short array notation --- src/Server/TextDocument.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); }