Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed dynamic property on LanguageServer #8876

Merged
merged 2 commits into from Dec 10, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/Psalm/Internal/LanguageServer/LanguageServer.php
Expand Up @@ -15,6 +15,7 @@
use Amp\Success;
use Generator;
use InvalidArgumentException;
use JsonMapper;
use LanguageServerProtocol\ClientCapabilities;
use LanguageServerProtocol\CompletionOptions;
use LanguageServerProtocol\Diagnostic;
Expand Down Expand Up @@ -108,6 +109,13 @@ class LanguageServer extends Dispatcher
*/
protected $current_issues = [];

/**
* This should actually be a private property on `parent`
* @psalm-suppress UnusedProperty
* @var JsonMapper
*/
protected $mapper;

public function __construct(
ProtocolReader $reader,
ProtocolWriter $writer,
Expand Down