diff options
author | Remi Collet <remi@remirepo.net> | 2021-09-14 15:48:32 +0200 |
---|---|---|
committer | Remi Collet <remi@remirepo.net> | 2021-09-14 15:48:32 +0200 |
commit | b83c7737bb365257fe91f0dca62b119cffa69c36 (patch) | |
tree | 444fb6dbd24ff791103cae01d9a1f7365fbbb429 /composer.json | |
parent | eba21085f0f8c7263772dcac90d855902caac9ee (diff) |
update to 2.1.7
Diffstat (limited to 'composer.json')
-rw-r--r-- | composer.json | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/composer.json b/composer.json index 2070495..9225f2e 100644 --- a/composer.json +++ b/composer.json @@ -78,11 +78,20 @@ ], "scripts": { "compile": "@php -dphar.readonly=0 bin/compile", - "test": "simple-phpunit" + "test": "simple-phpunit", + "phpstan-setup": [ + "@composer config platform --unset", + "@php composer.phar update", + "@composer require --dev phpstan/phpstan:^0.12.93 phpstan/phpstan-phpunit:^0.12.17 phpunit/phpunit:^7.5.20 --with-all-dependencies", + "git checkout composer.json composer.lock" + ], + "phpstan": "@php vendor/bin/phpstan analyse --configuration=phpstan/config.neon" }, "scripts-descriptions": { "compile": "Compile composer.phar", - "test": "Run all tests" + "test": "Run all tests", + "phpstan-setup": "Prepare environment to run PHPStan locally (must be run with PHP7.4)", + "phpstan": "Runs PHPStan (after phpstan-setup was executed, must be run with PHP7.4)" }, "support": { "issues": "https://github.com/composer/composer/issues", |