Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#39] Update PhpStan to version 1 and level 9 #40

Merged
merged 1 commit into from Nov 3, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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;
}