Skip to content

Commit

Permalink
Upgrade PHPStan
Browse files Browse the repository at this point in the history
  • Loading branch information
natanfelles committed Nov 4, 2022
1 parent 22937da commit a6e1890
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:

- name: PHPStan
run:
vendor/bin/phpstan analyse -vvv
vendor/bin/phpstan analyse --xdebug -vvv

- name: PHPUnit
run: vendor/bin/phpunit --verbose
Expand Down
2 changes: 1 addition & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ test:php:
- composer normalize --dry-run --indent-size=4 --indent-style=space
- vendor/bin/php-cs-fixer fix --diff --dry-run --verbose
#- vendor/bin/phpmd src xml phpmd.xml
- vendor/bin/phpstan analyse -vvv
- vendor/bin/phpstan analyse --xdebug -vvv
- vendor/bin/phpunit --colors=never
- phpdoc
artifacts:
Expand Down
2 changes: 1 addition & 1 deletion ci-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ commands=(
"composer normalize --dry-run --indent-size=4 --indent-style=space"
"vendor/bin/php-cs-fixer fix --diff --dry-run --verbose"
"vendor/bin/phpmd src xml phpmd.xml"
"vendor/bin/phpstan analyse -vvv"
"vendor/bin/phpstan analyse --xdebug -vvv"
"vendor/bin/phpunit"
"phpdoc"
)
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"ergebnis/composer-normalize": "^2.25",
"jetbrains/phpstorm-attributes": "^1.0",
"phpmd/phpmd": "^2.13",
"phpstan/phpstan": "^1.7",
"phpstan/phpstan": "^1.9",
"phpunit/phpunit": "^9.5"
},
"minimum-stability": "dev",
Expand Down
1 change: 0 additions & 1 deletion src/Language.php
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,6 @@ protected function getRenderedLine(
if ($text !== null) {
$text = $this->formatMessage($text, $args, $locale);
}
// @phpstan-ignore-next-line
return [
'locale' => $locale,
'message' => $text ?? ($file . '.' . $line),
Expand Down
2 changes: 1 addition & 1 deletion tests/Debug/LanguageCollectorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ public function testActivities() : void
'start',
'end',
],
\array_keys($this->collector->getActivities()[0])
\array_keys($this->collector->getActivities()[0]) // @phpstan-ignore-line
);
}
}

0 comments on commit a6e1890

Please sign in to comment.