diff --git a/src/Composer/Factory.php b/src/Composer/Factory.php index 41c281378..b13696bc2 100644 --- a/src/Composer/Factory.php +++ b/src/Composer/Factory.php @@ -535,7 +535,7 @@ class Factory } $remoteFilesystemOptions = array(); if ($disableTls === false) { - if (isset($config) && !empty($config->get('cafile'))) { + if (isset($config) && $config->get('cafile')) { $remoteFilesystemOptions = array('ssl' => array('cafile' => $config->get('cafile'))); } $remoteFilesystemOptions = array_merge_recursive($remoteFilesystemOptions, $options);