Skip to content

Commit

Permalink
Require phpstan v1 (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
simPod authored Mar 24, 2022
1 parent 45096f1 commit a300429
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@
"hectorj/safe-php-psalm-plugin": "dev-master#b60ed45a06d5246e2efd193ce9c8940b244d5c7d",
"jakub-onderka/php-parallel-lint": "^1.0",
"phpstan/extension-installer": "^1.0",
"phpstan/phpstan": "0.12.99",
"phpstan/phpstan-phpunit": "0.12.22",
"phpstan/phpstan-strict-rules": "^0.12.7",
"phpstan/phpstan": "^1.0.0",
"phpstan/phpstan-phpunit": "^1.0.0",
"phpstan/phpstan-strict-rules": "^1.0.0",
"phpunit/phpunit": "^9.5",
"psalm/plugin-phpunit": "0.16.1",
"thecodingmachine/phpstan-safe-rule": "^1.0",
Expand Down
4 changes: 2 additions & 2 deletions src/Extractor/Extractor.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@

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

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

0 comments on commit a300429

Please sign in to comment.