Install PHPStan using scoped Composer

This commit is contained in:
Shivam Mathur committed 2026-10-08 22:36:54 +05:30
1 parent 0534f032be
commit f1477a078f
2 files changed
+3 -6

No files matched your search

+1 -1
View File
@@ -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/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_tool https://github.com/phpDocumentor/phpDocumentor/releases/latest/download/phpDocumentor.phar phpDocumentor "--version"',
'add_composer_tool phplint phplint overtrue/', '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_tool https://phar.phpunit.de/phpunit-7.4.0.phar,https://phar.phpunit.de/phpunit-7.phar phpunit "--version"',
'add_pecl', 'add_pecl',
'add_tool https://www.phing.info/get/phing-latest.phar phing "-v"', 'add_tool https://www.phing.info/get/phing-latest.phar phing "-v"',
+2 -5
View File
@@ -153,12 +153,9 @@
"version_parameter": "-V" "version_parameter": "-V"
}, },
"phpstan": { "phpstan": {
"type": "phar", "type": "composer",
"repository": "phpstan/phpstan", "repository": "phpstan/phpstan",
"extension": ".phar", "scope": "scoped"
"domain": "https://github.com",
"version_prefix": "",
"version_parameter": "-V"
}, },
"pie": { "pie": {
"type": "phar", "type": "phar",