From f81fbba86e579713e5d1a9a90e26617f16ae20d3 Mon Sep 17 00:00:00 2001 From: jrfnl Date: Wed, 2 Feb 2022 12:56:52 +0100 Subject: [PATCH] Plugin::loadInstalledPaths(): `config-show` always shows all Running PHPCS with `--config-show installed_paths` is an unsupported command for PHPCS. The `--config-show` command does not take additional parameters and will always show all keys. While PHPCS is currently tolerant of this, there is no guarantee that it will continue to stay tolerant of this. --- src/Plugin.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/Plugin.php b/src/Plugin.php index 5ae09d03..9dd53963 100644 --- a/src/Plugin.php +++ b/src/Plugin.php @@ -233,10 +233,7 @@ private function loadInstalledPaths() { if ($this->isPHPCodeSnifferInstalled() === true) { $this->processExecutor->execute( - sprintf( - 'phpcs --config-show %s', - self::PHPCS_CONFIG_KEY - ), + 'phpcs --config-show', $output, $this->composer->getConfig()->get('bin-dir') );