mirror of
https://github.com/danog/psalm.git
synced 2025-01-22 05:41:20 +01:00
Convert @return Promise<...> to @psalm-return Promise<...>
This commit is contained in:
parent
341cb0c82c
commit
7855683271
@ -173,7 +173,7 @@ class LanguageServer extends AdvancedJsonRpc\Dispatcher
|
||||
* @param int|null $processId The process Id of the parent process that started the server.
|
||||
* Is null if the process has not been started by another process. If the parent process is
|
||||
* not alive then the server should exit (see exit notification) its process.
|
||||
* @return Promise<InitializeResult>
|
||||
* @psalm-return Promise<InitializeResult>
|
||||
* @psalm-suppress PossiblyUnusedMethod
|
||||
*/
|
||||
public function initialize(
|
||||
|
@ -171,7 +171,7 @@ class TextDocument
|
||||
*
|
||||
* @param TextDocumentIdentifier $textDocument The text document
|
||||
* @param Position $position The position inside the text document
|
||||
* @return Promise<Location|Hover>
|
||||
* @psalm-return Promise<Location|Hover>
|
||||
*/
|
||||
public function definition(TextDocumentIdentifier $textDocument, Position $position): Promise
|
||||
{
|
||||
@ -223,7 +223,7 @@ class TextDocument
|
||||
*
|
||||
* @param TextDocumentIdentifier $textDocument The text document
|
||||
* @param Position $position The position inside the text document
|
||||
* @return Promise<Hover>
|
||||
* @psalm-return Promise<Hover>
|
||||
*/
|
||||
public function hover(TextDocumentIdentifier $textDocument, Position $position): Promise
|
||||
{
|
||||
@ -275,7 +275,7 @@ class TextDocument
|
||||
*
|
||||
* @param TextDocumentIdentifier The text document
|
||||
* @param Position $position The position
|
||||
* @return Promise<CompletionItem[]|CompletionList>
|
||||
* @psalm-return Promise<CompletionItem[]|CompletionList>
|
||||
*/
|
||||
public function completion(TextDocumentIdentifier $textDocument, Position $position): Promise
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user