Skip to content

Commit b45b915

Browse files
authored
feat: update phpstan to v2 (#24)
1 parent fcdd430 commit b45b915

File tree

3 files changed

+355
-293
lines changed

3 files changed

+355
-293
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: 37 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,40 @@
11
{
2-
"name": "lychee-org/phpstan-lychee",
3-
"description": "Set of rules for all Lychee related php repo",
4-
"type": "library",
5-
"license": "MIT",
6-
"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"
16-
},
17-
"scripts": {
18-
"check-code-style": [
19-
"./vendor/bin/php-cs-fixer fix -v --config=.php-cs-fixer.php"
20-
],
21-
"validate-files": [
22-
"vendor/bin/parallel-lint --exclude vendor ."
23-
]
24-
},
25-
"autoload": {
26-
"psr-4": {
27-
"Lycheeorg\\PHPStan\\": "phpstan/"
28-
}
29-
},
30-
"config": {
31-
"platform": {
32-
"php": "8.2"
2+
"name": "lychee-org/phpstan-lychee",
3+
"description": "Set of rules for all Lychee related php repo",
4+
"type": "library",
5+
"license": "MIT",
6+
"require": {
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"
3316
},
34-
"preferred-install": "dist",
35-
"sort-packages": true,
36-
"optimize-autoloader": true
37-
},
38-
"prefer-stable": true,
39-
"minimum-stability": "stable"
17+
"scripts": {
18+
"check-code-style": [
19+
"./vendor/bin/php-cs-fixer fix -v --config=.php-cs-fixer.php"
20+
],
21+
"validate-files": [
22+
"vendor/bin/parallel-lint --exclude vendor ."
23+
]
24+
},
25+
"autoload": {
26+
"psr-4": {
27+
"Lycheeorg\\PHPStan\\": "phpstan/"
28+
}
29+
},
30+
"config": {
31+
"platform": {
32+
"php": "8.3"
33+
},
34+
"preferred-install": "dist",
35+
"sort-packages": true,
36+
"optimize-autoloader": true
37+
},
38+
"prefer-stable": true,
39+
"minimum-stability": "stable"
4040
}

0 commit comments

Comments
 (0)