Skip to content

Commit 2647087

Browse files
committed
Composer: allow the PHPCS plugin
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
1 parent ffc9e7d commit 2647087

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

composer.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,10 @@
1717
"dealerdirect/phpcodesniffer-composer-installer": "^0.7",
1818
"phpcompatibility/php-compatibility": "^9.3",
1919
"squizlabs/php_codesniffer": "^3.6.1"
20+
},
21+
"config": {
22+
"allow-plugins": {
23+
"dealerdirect/phpcodesniffer-composer-installer": true
24+
}
2025
}
2126
}

0 commit comments

Comments
 (0)