Skip to content

Commit

Permalink
Upgrade PHPStan
Browse files Browse the repository at this point in the history
  • Loading branch information
ogizanagi committed Jun 16, 2022
1 parent 231e90a commit 55a2dca
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@
},
"require-dev": {
"doctrine/annotations": "^1.9",
"ekino/phpstan-banned-code": "^0.4",
"ekino/phpstan-banned-code": "^1.0",
"phpspec/prophecy-phpunit": "^2.0",
"phpstan/phpstan": "^0.12.32",
"phpstan/phpstan": "^1.6",
"psr/log": "^1",
"symfony/browser-kit": "^5.1|^6.0",
"symfony/expression-language": "^5.1|^6.0",
Expand Down
12 changes: 6 additions & 6 deletions phpstan.neon.dist
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,21 @@ includes:
- vendor/ekino/phpstan-banned-code/extension.neon

parameters:
level: 1

bootstrapFiles:
- config/tags.php
- tests/bootstrap.php
- vendor/bin/.phpunit/phpunit/vendor/autoload.php

excludes_analyse:
- tests/fixtures/app/var/
- tests/fixtures/Unit/Service/Git/bin

level: 1

paths:
- 'src'
- 'tests'

excludePaths:
- tests/fixtures/app/var/
- tests/fixtures/Unit/Service/Git/bin

banned_code:
nodes:
#-
Expand Down
2 changes: 1 addition & 1 deletion src/Command/DebugCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
private function getOrders(array $rawOrders): array
{
$orders = [];
foreach ($rawOrders ?? [] as $field) {
foreach ($rawOrders as $field) {
if (str_starts_with($field, 'desc:')) {
$orders[substr($field, 5)] = false;
continue;
Expand Down

0 comments on commit 55a2dca

Please sign in to comment.