Przeglądaj źródła

Small fix for validated NULL cafile in config

Pádraic Brady 11 lat temu
rodzic
commit
6f0f17355f
1 zmienionych plików z 1 dodań i 1 usunięć
  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(