diff --git a/src/Composer/Command/ConfigCommand.php b/src/Composer/Command/ConfigCommand.php index 1ebb5bcc0..9773ea885 100644 --- a/src/Composer/Command/ConfigCommand.php +++ b/src/Composer/Command/ConfigCommand.php @@ -373,8 +373,9 @@ EOT )); } - if (1 === count($values) && $booleanValidator($values[0])) { - if (false === $booleanNormalizer($values[0])) { + if (1 === count($values)) { + $bool = strtolower($values[0]); + if (true === $booleanValidator($bool) && false === $booleanNormalizer($bool)) { return $this->configSource->addRepository($matches[1], false); } }