Browse Source

Small fix for validated NULL cafile in config

Pádraic Brady 11 năm trước cách đây
mục cha
commit
6f0f17355f
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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(