Skip to content

Commit d2d3888

Browse files
committed
Config composer scripts related to PHPStan
1 parent 705c43a commit d2d3888

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

composer.json

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,20 @@
4646
"scripts": {
4747
"test": [
4848
"@phpunit",
49-
"@phpstan-analise"
49+
"@phpstan"
5050
],
5151
"phive-install": "phive install --trust-gpg-keys $(cat .phive/trust-gpg-keys.txt)",
5252
"phpunit": "vendor/bin/phpunit",
53-
"phpstan-analise": "vendor/bin/phpstan analyse",
54-
"phpstan-update": "vendor/bin/phpstan analyse --generate-baseline phpstan-baseline.neon",
53+
"phpstan": [
54+
"@phpstan-clear",
55+
"@phpstan-analyse"
56+
],
57+
"phpstan-analise": "vendor/bin/phpstan analyse -c scripts/phpstan/config.neon",
58+
"phpstan-baseline": [
59+
"@phpstan-clear",
60+
"@phpstan-analise --generate-baseline phpstan-baseline.neon"
61+
],
62+
"phpstan-clear": "vendor/bin/phpstan clear-result-cache -c scripts/phpstan/config.neon",
5563
"set_versions": "sh bin/dev/set_composer_versions"
5664
},
5765
"suggest": {

0 commit comments

Comments
 (0)