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:
parent
cb3cf887c4
commit
7379f516ae
@ -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([]);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user