Skip to content

Commit

Permalink
feat(phpstan): Update to PHPStan 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
yamadashy committed Oct 6, 2024
1 parent 282b12d commit f3e90c1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
6 changes: 2 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,11 @@
"require": {
"php": "^7.2 || ^8.0",
"php-parallel-lint/php-console-highlighter": "^0.3 || ^0.4 || ^0.5 || ^1.0",
"phpstan/phpstan": "^0.12 || ^1.0"
"phpstan/phpstan": "^2.0"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.4.0",
"grifart/phpstan-oneline": "^0.4.2",
"phpstan/phpstan-phpunit": "^0.12.22 || ^1.0",
"phpstan/phpstan-phpunit": "^0.12.22 || ^1.0 || ^2.0",
"phpunit/phpunit": "^8.5.26 || ^10.0.0"
},
"minimum-stability": "dev",
Expand Down Expand Up @@ -52,7 +51,6 @@
"analyze": "phpstan analyze -c phpstan.neon.dist --error-format friendly",
"analyze-raw": "phpstan analyze -c phpstan.neon.dist --error-format raw",
"analyze-table": "phpstan analyze -c phpstan.neon.dist --error-format table",
"analyze-oneline": "phpstan analyze -c phpstan.neon.dist --error-format oneline",
"cs-fix": "php-cs-fixer fix",
"cs-fix-dry": "php-cs-fixer fix --dry-run"
}
Expand Down
3 changes: 1 addition & 2 deletions phpstan.neon.dist
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
includes:
- extension.neon
- vendor/grifart/phpstan-oneline/config.neon
- vendor/phpstan/phpstan-phpunit/extension.neon
- vendor/phpstan/phpstan-phpunit/rules.neon

parameters:
level: 9
level: 10
paths:
- src
- tests
Expand Down

0 comments on commit f3e90c1

Please sign in to comment.