Skip to content

Commit a414357

Browse files
author
Kirill Nesmeyanov
committed
Bump phpstan from 1.x to 2.x and remove unnecessary psalm annotations
1 parent e711030 commit a414357

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

composer.json

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@
1919
},
2020
"require-dev": {
2121
"friendsofphp/php-cs-fixer": "^3.53",
22-
"phpstan/extension-installer": "^1.4",
23-
"phpstan/phpstan": "^1.11",
24-
"phpstan/phpstan-strict-rules": "^1.6",
22+
"phpstan/phpstan": "^2.0",
23+
"phpstan/phpstan-deprecation-rules": "^2.0",
24+
"phpstan/phpstan-strict-rules": "^2.0",
2525
"phpunit/phpunit": "^10.5|^11.0",
2626
"rector/rector": "^1.1"
2727
},
@@ -43,9 +43,6 @@
4343
"optimize-autoloader": true,
4444
"preferred-install": {
4545
"*": "dist"
46-
},
47-
"allow-plugins": {
48-
"phpstan/extension-installer": true
4946
}
5047
},
5148
"scripts": {

phpstan.neon

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
includes:
22
- phar://phpstan.phar/conf/bleedingEdge.neon
3+
- vendor/phpstan/phpstan-deprecation-rules/rules.neon
4+
- vendor/phpstan/phpstan-strict-rules/rules.neon
35
parameters:
4-
level: 9
6+
level: max
57
strictRules:
68
allRules: true
79
fileExtensions:

0 commit comments

Comments
 (0)