Explorar el Código

Small fix for validated NULL cafile in config

Pádraic Brady hace 11 años
padre
commit
6f0f17355f
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/Composer/Command/ConfigCommand.php

+ 1 - 1
src/Composer/Command/ConfigCommand.php

@@ -288,7 +288,7 @@ EOT
             'disable-tls' => array($booleanValidator, $booleanNormalizer),
             'cafile' => array(
                 function ($val) { return file_exists($val) && is_readable($val); }
-                function ($val) { return $val; }
+                function ($val) { return $val === 'null' ? null : $val; }
             )
         );
         $multiConfigValues = array(