1
0
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:
Andrew Nagy 2022-12-20 23:31:56 +00:00
parent 5f9487e9a9
commit 24017059ee
5 changed files with 14 additions and 26 deletions

View File

@ -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);

View File

@ -17,10 +17,7 @@ class TextDocument
{
private ClientHandler $handler;
/**
* @var LanguageServer
*/
private $server;
private LanguageServer $server;
public function __construct(ClientHandler $handler, LanguageServer $server)
{

View File

@ -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,
]
]
],
],
]);
}
}

View File

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

View File

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