diff --git a/src/Server/TextDocument.php b/src/Server/TextDocument.php index 46e822a..1c7d292 100644 --- a/src/Server/TextDocument.php +++ b/src/Server/TextDocument.php @@ -220,8 +220,8 @@ class TextDocument } } $refDocuments = yield Promise\all(iterator_to_array( - $this->getOrLoadReferences($fqn)) - ); + $this->getOrLoadReferences($fqn) + )); foreach ($refDocuments as $document) { $refs = $document->getReferenceNodesByFqn($fqn); if ($refs !== null) {