Skip to content

Commit 0860844

Browse files
committed
feat: update phpstan to v2
1 parent fcdd430 commit 0860844

File tree

3 files changed

+326
-270
lines changed

3 files changed

+326
-270
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/vendor/
22

33
.php-cs-fixer.cache
4-
.vscode
4+
.vscode
5+
.idea/*

composer.json

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44
"type": "library",
55
"license": "MIT",
66
"require": {
7-
"friendsofphp/php-cs-fixer": "^3.3",
8-
"php-parallel-lint/php-parallel-lint": "^1.2",
9-
"phpstan/phpstan": "^1.9",
10-
"phpstan/phpstan-deprecation-rules": "^1.2",
11-
"phpstan/phpstan-strict-rules": "^1.6",
12-
"slam/phpstan-extensions": "^6.3",
13-
"squizlabs/php_codesniffer": "^3.5",
14-
"symplify/phpstan-rules": "12.7.0",
15-
"thecodingmachine/phpstan-safe-rule": "^1.2"
7+
"friendsofphp/php-cs-fixer": "^3.72",
8+
"php-parallel-lint/php-parallel-lint": "^1.4",
9+
"phpstan/phpstan": "^2.1.8",
10+
"phpstan/phpstan-deprecation-rules": "^2.0.1",
11+
"phpstan/phpstan-strict-rules": "^2.0.3",
12+
"slam/phpstan-extensions": "^6.6",
13+
"squizlabs/php_codesniffer": "^3.11.3",
14+
"symplify/phpstan-rules": "^14.4.1",
15+
"thecodingmachine/phpstan-safe-rule": "^1.4"
1616
},
1717
"scripts": {
1818
"check-code-style": [
@@ -28,9 +28,6 @@
2828
}
2929
},
3030
"config": {
31-
"platform": {
32-
"php": "8.2"
33-
},
3431
"preferred-install": "dist",
3532
"sort-packages": true,
3633
"optimize-autoloader": true

0 commit comments

Comments
 (0)