Skip to content

Commit 7a8ff64

Browse files
committed
Composer: allow plugins
The `dealerdirect/phpcodesniffer-composer-installer` Composer plugin is used to register external PHPCS standards with PHPCS. The `composer/installers` Composer plugin is used to install the plugin in the correct directory in a WordPress context. 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 9c893b7 commit 7a8ff64

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

composer.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,10 @@
5858
]
5959
},
6060
"config": {
61-
"classmap-authoritative": true
61+
"classmap-authoritative": true,
62+
"allow-plugins": {
63+
"dealerdirect/phpcodesniffer-composer-installer": true,
64+
"composer/installers": true
65+
}
6266
}
6367
}

0 commit comments

Comments
 (0)