mirror of
https://github.com/danog/psalm.git
synced 2025-01-21 21:31:13 +01:00
fix phpcs issues
This commit is contained in:
parent
5f9487e9a9
commit
24017059ee
@ -1608,8 +1608,11 @@ final class Codebase
|
||||
/**
|
||||
* @return list<CompletionItem>
|
||||
*/
|
||||
public function getCompletionItemsForClassishThing(string $type_string, string $gap, bool $snippets_supported = false): array
|
||||
{
|
||||
public function getCompletionItemsForClassishThing(
|
||||
string $type_string,
|
||||
string $gap,
|
||||
bool $snippets_supported = false
|
||||
): array {
|
||||
$completion_items = [];
|
||||
|
||||
$type = Type::parseString($type_string);
|
||||
|
@ -17,10 +17,7 @@ class TextDocument
|
||||
{
|
||||
private ClientHandler $handler;
|
||||
|
||||
/**
|
||||
* @var LanguageServer
|
||||
*/
|
||||
private $server;
|
||||
private LanguageServer $server;
|
||||
|
||||
public function __construct(ClientHandler $handler, LanguageServer $server)
|
||||
{
|
||||
|
@ -11,24 +11,19 @@ use Psalm\Internal\LanguageServer\LanguageServer;
|
||||
|
||||
/**
|
||||
* Provides method handlers for all textDocument/* methods
|
||||
*
|
||||
* @internal
|
||||
*/
|
||||
class Workspace
|
||||
{
|
||||
/**
|
||||
* @var ClientHandler
|
||||
*/
|
||||
private $handler;
|
||||
private ClientHandler $handler;
|
||||
|
||||
/**
|
||||
* @var JsonMapper
|
||||
* @psalm-suppress UnusedProperty
|
||||
*/
|
||||
private $mapper;
|
||||
private JsonMapper $mapper;
|
||||
|
||||
/**
|
||||
* @var LanguageServer
|
||||
*/
|
||||
private $server;
|
||||
private LanguageServer $server;
|
||||
|
||||
public function __construct(ClientHandler $handler, JsonMapper $mapper, LanguageServer $server)
|
||||
{
|
||||
@ -57,8 +52,8 @@ class Workspace
|
||||
[
|
||||
'section' => $section,
|
||||
'scopeUri' => $scopeUri,
|
||||
]
|
||||
]
|
||||
],
|
||||
],
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
@ -935,7 +935,7 @@ class LanguageServer extends Dispatcher
|
||||
$this->client->event(
|
||||
new LogMessage(
|
||||
MessageType::INFO,
|
||||
$status . (!empty($additional_info) ? ': ' . $additional_info : '')
|
||||
$status . (!empty($additional_info) ? ': ' . $additional_info : ''),
|
||||
),
|
||||
);
|
||||
} catch (Throwable $err) {
|
||||
|
@ -15,13 +15,6 @@ use AdvancedJsonRpc\SuccessResponse;
|
||||
*/
|
||||
abstract class Message extends AdvancedJsonRpcMessage
|
||||
{
|
||||
/**
|
||||
* A String specifying the version of the JSON-RPC protocol. MUST be exactly "2.0".
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public $jsonrpc = '2.0';
|
||||
|
||||
/**
|
||||
* Returns the appropriate Message subclass
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user