Allow PHPStan extension-installer plugin in Composer config
Add composer global config to explicitly allow phpstan/extension-installer plugin before installation. This resolves "blocked by your allow-plugins config" error in Composer 2.2+. Co-authored-by: jmiller-moko <230051081+jmiller-moko@users.noreply.github.com>
This commit is contained in:
1
.github/workflows/php_quality.yml
vendored
1
.github/workflows/php_quality.yml
vendored
@@ -108,6 +108,7 @@ jobs:
|
||||
env:
|
||||
COMPOSER_AUTH: '{"github-oauth": {"github.com": "${{ secrets.GITHUB_TOKEN }}"}}'
|
||||
run: |
|
||||
composer global config --no-plugins allow-plugins.phpstan/extension-installer true
|
||||
composer global require phpstan/phpstan "^1.0" --with-all-dependencies
|
||||
composer global require phpstan/extension-installer "^1.0" --with-all-dependencies
|
||||
|
||||
|
||||
Reference in New Issue
Block a user