From 8c0251006687cb652e7cbbbf8b76238819b6a5b6 Mon Sep 17 00:00:00 2001 From: jrfnl Date: Thu, 23 Dec 2021 02:54:43 +0100 Subject: [PATCH] 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 --- composer.json | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/composer.json b/composer.json index a9098b0..bf00a3d 100644 --- a/composer.json +++ b/composer.json @@ -26,6 +26,11 @@ "replace": { "jakub-onderka/php-console-color": "*" }, + "config": { + "allow-plugins": { + "dealerdirect/phpcodesniffer-composer-installer": true + } + }, "scripts" : { "phplint": [ "@php ./vendor/php-parallel-lint/php-parallel-lint/parallel-lint . -e php --exclude vendor --exclude .git"