diff --git a/src/Indexer.php b/src/Indexer.php index 28b7d1e..9f8749d 100644 --- a/src/Indexer.php +++ b/src/Indexer.php @@ -193,19 +193,11 @@ class Indexer $mem = (int)(memory_get_usage(true) / (1024 * 1024)); $this->client->window->logMessage( MessageType::INFO, - "All $count PHP files parsed in $duration seconds. $mem MiB allocated. " . \count($this->nullDocs) . " null docs" + "All $count PHP files parsed in $duration seconds. $mem MiB allocated." ); - foreach ($this->nullDocs as $nullDoc) { - $this->client->window->logMessage( - MessageType::INFO, - $nullDoc - ); - } }); } - private $nullDocs = []; - /** * @param array $files * @return Promise @@ -224,9 +216,6 @@ class Indexer $this->client->window->logMessage(MessageType::LOG, "Parsing $uri"); try { $document = yield $this->documentLoader->load($uri); - if ($document->getStmts() === null) { - $this->nullDocs[] = $document->getUri(); - } if (!isVendored($document, $this->composerJson)) { $this->client->textDocument->publishDiagnostics($uri, $document->getDiagnostics()); }