Skip to content

Commit a300429

Browse files
authored
Require phpstan v1 (#20)
1 parent 45096f1 commit a300429

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@
2929
"hectorj/safe-php-psalm-plugin": "dev-master#b60ed45a06d5246e2efd193ce9c8940b244d5c7d",
3030
"jakub-onderka/php-parallel-lint": "^1.0",
3131
"phpstan/extension-installer": "^1.0",
32-
"phpstan/phpstan": "0.12.99",
33-
"phpstan/phpstan-phpunit": "0.12.22",
34-
"phpstan/phpstan-strict-rules": "^0.12.7",
32+
"phpstan/phpstan": "^1.0.0",
33+
"phpstan/phpstan-phpunit": "^1.0.0",
34+
"phpstan/phpstan-strict-rules": "^1.0.0",
3535
"phpunit/phpunit": "^9.5",
3636
"psalm/plugin-phpunit": "0.16.1",
3737
"thecodingmachine/phpstan-safe-rule": "^1.0",

src/Extractor/Extractor.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@
1010

1111
abstract class Extractor
1212
{
13-
/** @var array{id: string, jsonrpc: string, error?: array{code: int, message: string, data?: mixed}, method: string, params?: array<string, mixed>} */
13+
/** @var array{id: string, jsonrpc: string, error?: array{code: int, message: string, data?: mixed}, method: string, params?: array<string, mixed>, result?: mixed} */
1414
protected array $messageContents;
1515

1616
public function __construct(MessageInterface $message)
1717
{
18-
/** @var array{id: string, jsonrpc: string, error?: array{code: int, message: string, data?: mixed}, method: string, params?: array<string, mixed>} $contents */
18+
/** @var array{id: string, jsonrpc: string, error?: array{code: int, message: string, data?: mixed}, method: string, params?: array<string, mixed>, result?: mixed} $contents */
1919
$contents = json_decode((string) $message->getBody(), true);
2020
$this->messageContents = $contents;
2121
}

0 commit comments

Comments
 (0)