Browse Source

Let's be gentle and allow FALSE too

Rob Bast 10 years ago
parent
commit
47d75f77d5
1 changed files with 3 additions and 2 deletions
  1. 3 2
      src/Composer/Command/ConfigCommand.php

+ 3 - 2
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);
                 }
             }