Skip to content

Commit

Permalink
[#16] Update PhpStan to version 1 and level 9
Browse files Browse the repository at this point in the history
  • Loading branch information
kpicaza committed Nov 3, 2021
1 parent 5b986e6 commit bc52c2f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions composer.json
Expand Up @@ -20,9 +20,9 @@
},
"require-dev": {
"icanhazstring/composer-unused": "^0.7.5",
"infection/infection": "^0.25.0",
"infection/infection": "^0.25",
"phpro/grumphp": "^1.0",
"phpstan/phpstan": "^0.12",
"phpstan/phpstan": "^1.0",
"phpunit/phpunit": "^8.0 || ^9.0",
"roave/infection-static-analysis-plugin": "^1.8",
"squizlabs/php_codesniffer": "^3.4",
Expand Down Expand Up @@ -50,7 +50,7 @@
],
"cs-check": "phpcs src --colors",
"cs-fix": "phpcbf src --colors",
"inspect": "phpstan analyse src -l7 --ansi",
"inspect": "phpstan analyse src -l9 --ansi",
"test": "phpunit --colors=always",
"psalm": "psalm",
"infection": "XDEBUG_MODE=coverage roave-infection-static-analysis-plugin"
Expand Down
2 changes: 1 addition & 1 deletion src/Read/Segment.php
Expand Up @@ -20,7 +20,7 @@ public function criteria(): array;
*/
public function match(array $payload): bool;
/**
* @return array<string, string|array>
* @return array<string, string|array<string, mixed>>
*/
public function toArray(): array;
}
2 changes: 1 addition & 1 deletion src/Read/ToggleStrategy.php
Expand Up @@ -12,7 +12,7 @@ public function id(): string;
public function type(): string;
public function isSatisfiedBy(ConsumerIdentity $identity): bool;
/**
* @return array<string, string|array>
* @return array<string, string|int>
*/
public function toArray(): array;
}

0 comments on commit bc52c2f

Please sign in to comment.