Parcourir la source

Let's be gentle and allow FALSE too

Rob Bast il y a 10 ans
Parent
commit
47d75f77d5
1 fichiers modifiés avec 3 ajouts et 2 suppressions
  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);
                 }
             }