1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-22 13:51:54 +01:00

fix cs issues

This commit is contained in:
Andrew Nagy 2021-12-30 18:35:08 +00:00
parent cb3cf887c4
commit 7379f516ae

View File

@ -6,7 +6,6 @@ namespace Psalm\Internal\LanguageServer\Server;
use Amp\Promise;
use Amp\Success;
use Exception;
use LanguageServerProtocol\CompletionList;
use LanguageServerProtocol\Hover;
use LanguageServerProtocol\Location;
@ -285,8 +284,9 @@ class TextDocument
return new Success([]);
}
} catch(UnexpectedValueException $e) {
error_log('completion not found at ' . $position->line . ':' . $position->character.', Reason: '.$e->getMessage());
} catch (UnexpectedValueException $e) {
error_log('completion errored at ' . $position->line . ':' . $position->character.
', Reason: '.$e->getMessage());
return new Success([]);
}