1
0
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:
Brown 2018-12-14 10:27:39 -05:00
parent 341cb0c82c
commit 7855683271
2 changed files with 4 additions and 4 deletions

View File

@ -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(

View File

@ -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
{