Skip to content

Commit

Permalink
Composer: allow the PHPCS plugin
Browse files Browse the repository at this point in the history
The `dealerdirect/phpcodesniffer-composer-installer` Composer plugin is used to register external PHPCS standards with PHPCS.

As of Composer 2.2.0, Composer plugins need to be explicitly allowed to run. This adds the necessary configuration for that.

Refs:
* https://blog.packagist.com/composer-2-2/#more-secure-plugin-execution
  • Loading branch information
jrfnl committed Dec 23, 2021
1 parent 8853b30 commit 22b7ad6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@
"require-dev": {
"yoast/yoastcs": "^2.2.0"
},
"config": {
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
}
},
"autoload": {
"files": ["phpunitpolyfills-autoload.php"]
},
Expand Down

0 comments on commit 22b7ad6

Please sign in to comment.