From 5bb3f1db6510f36cb2d64fa82f0fc17adfb097a8 Mon Sep 17 00:00:00 2001 From: Juliette <663378+jrfnl@users.noreply.github.com> Date: Fri, 28 Jan 2022 13:54:27 +0100 Subject: [PATCH] Composer: allow the PHPCS plugin (#116) 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 Co-authored-by: jrfnl --- composer.json | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/composer.json b/composer.json index bb33b15..b4ab6d3 100644 --- a/composer.json +++ b/composer.json @@ -20,5 +20,10 @@ "phpcompatibility/phpcompatibility-wp": "^2.1", "yoast/phpunit-polyfills": "^1.0.1", "phpunit/phpunit": "^5.7.21 || ^6.5 || ^7.5" + }, + "config": { + "allow-plugins": { + "dealerdirect/phpcodesniffer-composer-installer": true + } } }