diff --git a/composer.json b/composer.json index bbc7e8e..3da75b3 100644 --- a/composer.json +++ b/composer.json @@ -35,16 +35,20 @@ "prefer-stable": true, "minimum-stability": "dev", "scripts": { + "analyse": [ + "@stan", + "@psalm" + ], "check": [ "@cs-check", "@test", - "@stan" + "@analyse" ], "cs-check": "phpcs -p --standard=vendor/cakephp/cakephp-codesniffer/CakePHP src/ tests/", "cs-fix": "phpcbf --standard=vendor/cakephp/cakephp-codesniffer/CakePHP src/ tests/", "test": "phpunit --stderr", - "stan": "phpstan analyse src/ && psalm --show-info=false", - "psalm": "psalm --show-info=false", + "stan": "phpstan analyse src/", + "psalm": "php vendor/psalm/phar/psalm.phar --show-info=false src/ ", "stan-setup": "cp composer.json composer.backup && composer require --dev phpstan/phpstan:^0.12.7 psalm/phar:~3.8.0 && mv composer.backup composer.json", "rector-setup": "cp composer.json composer.backup && composer require --dev rector/rector:^0.4.11 && mv composer.backup composer.json", "coverage-test": "phpunit --stderr --coverage-clover=clover.xml"