Skip to content

Commit 69f4ed8

Browse files
authored
[FEATURE] Add phpstan:clearcache Composer script (#1538)
1 parent a32cddc commit 69f4ed8

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

composer.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,8 @@
112112
"fix:php:codesniffer": "phpcbf --standard=config/phpcs.xml bin config src tests",
113113
"fix:php:fixer": "\"./.phive/php-cs-fixer\" --config=config/php-cs-fixer.php fix bin config src tests",
114114
"fix:php:rector": "rector process --config=config/rector.php",
115-
"phpstan:baseline": "phpstan --configuration=config/phpstan.neon --generate-baseline=config/phpstan-baseline.neon --allow-empty-baseline"
115+
"phpstan:baseline": "phpstan --configuration=config/phpstan.neon --generate-baseline=config/phpstan-baseline.neon --allow-empty-baseline",
116+
"phpstan:clearcache": "phpstan clear-result-cache"
116117
},
117118
"scripts-descriptions": {
118119
"check": "Runs all dynamic and static code checks.",
@@ -134,6 +135,7 @@
134135
"fix:php:codesniffer": "Reformats the code with PHP_CodeSniffer.",
135136
"fix:php:fixer": "Fixes autofixable issues found by PHP CS Fixer.",
136137
"fix:php:rector": "Fixes autofixable issues found by Rector.",
137-
"phpstan:baseline": "Updates the PHPStan baseline file to match the code."
138+
"phpstan:baseline": "Updates the PHPStan baseline file to match the code.",
139+
"phpstan:clearcache": "Clears the PHPStan cache."
138140
}
139141
}

0 commit comments

Comments
 (0)