From 47d75f77d5cdbe63b2fe2bfbe9db4712ba98a812 Mon Sep 17 00:00:00 2001 From: Rob Bast Date: Mon, 16 Feb 2015 16:54:52 +0100 Subject: [PATCH] Let's be gentle and allow FALSE too --- src/Composer/Command/ConfigCommand.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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); } }