Skip to content

Commit

Permalink
Fix return types
Browse files Browse the repository at this point in the history
  • Loading branch information
muglug committed May 5, 2019
1 parent 06a81ec commit 0d09c99
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Psalm/Internal/LanguageServer/Server/TextDocument.php
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ public function didClose(TextDocumentIdentifier $textDocument)
*
* @param TextDocumentIdentifier $textDocument The text document
* @param Position $position The position inside the text document
* @psalm-return Promise<Location|Hover>
* @psalm-return Promise<Location>|Promise<Hover>
*/
public function definition(TextDocumentIdentifier $textDocument, Position $position): Promise
{
Expand Down Expand Up @@ -244,7 +244,7 @@ public function hover(TextDocumentIdentifier $textDocument, Position $position):
*
* @param TextDocumentIdentifier The text document
* @param Position $position The position
* @psalm-return Promise<CompletionItem[]|CompletionList>
* @psalm-return Promise<array<empty, empty>>|Promise<CompletionList>
*/
public function completion(TextDocumentIdentifier $textDocument, Position $position): Promise
{
Expand Down

0 comments on commit 0d09c99

Please sign in to comment.