diff --git a/src/Psalm/Internal/LanguageServer/Client/TextDocument.php b/src/Psalm/Internal/LanguageServer/Client/TextDocument.php index 2bca92f50..2338465aa 100644 --- a/src/Psalm/Internal/LanguageServer/Client/TextDocument.php +++ b/src/Psalm/Internal/LanguageServer/Client/TextDocument.php @@ -58,7 +58,7 @@ class TextDocument /** * @return Generator, object, TextDocumentItem> */ - static function () use ($textDocument) { + function () use ($textDocument) { /** @var Promise */ $promise = $this->handler->request( 'textDocument/xcontent', diff --git a/src/Psalm/Internal/LanguageServer/ClientHandler.php b/src/Psalm/Internal/LanguageServer/ClientHandler.php index 2b3ee6e54..444e916bd 100644 --- a/src/Psalm/Internal/LanguageServer/ClientHandler.php +++ b/src/Psalm/Internal/LanguageServer/ClientHandler.php @@ -48,7 +48,7 @@ class ClientHandler /** * @return Generator> */ - static function () use ($id, $method, $params): Generator { + function () use ($id, $method, $params): Generator { yield $this->protocolWriter->write( new Message( new Request($id, $method, (object) $params), @@ -58,7 +58,7 @@ class ClientHandler $deferred = new Deferred(); $listener = - static function (Message $msg) use ($id, $deferred, &$listener): void { + function (Message $msg) use ($id, $deferred, &$listener): void { error_log('request handler'); /** * @psalm-suppress UndefinedPropertyFetch