diff --git a/__tests__/tools.test.ts b/__tests__/tools.test.ts index 24d8349e..e06bdd35 100644 --- a/__tests__/tools.test.ts +++ b/__tests__/tools.test.ts @@ -655,7 +655,7 @@ describe('Tools tests', () => { 'add_tool https://github.com/humbug/php-scoper/releases/latest/download/php-scoper.phar php-scoper "--version"', 'add_tool https://github.com/phpDocumentor/phpDocumentor/releases/latest/download/phpDocumentor.phar phpDocumentor "--version"', 'add_composer_tool phplint phplint overtrue/', - 'add_tool https://github.com/phpstan/phpstan/releases/latest/download/phpstan.phar phpstan "-V"', + 'add_composer_tool phpstan phpstan phpstan/ scoped', 'add_tool https://phar.phpunit.de/phpunit-7.4.0.phar,https://phar.phpunit.de/phpunit-7.phar phpunit "--version"', 'add_pecl', 'add_tool https://www.phing.info/get/phing-latest.phar phing "-v"', diff --git a/src/configs/tools.json b/src/configs/tools.json index 4e0a7852..66138f3b 100644 --- a/src/configs/tools.json +++ b/src/configs/tools.json @@ -153,12 +153,9 @@ "version_parameter": "-V" }, "phpstan": { - "type": "phar", + "type": "composer", "repository": "phpstan/phpstan", - "extension": ".phar", - "domain": "https://github.com", - "version_prefix": "", - "version_parameter": "-V" + "scope": "scoped" }, "pie": { "type": "phar",