diff --git a/src/Composer/Factory.php b/src/Composer/Factory.php index 7998c8be6..e6718278f 100644 --- a/src/Composer/Factory.php +++ b/src/Composer/Factory.php @@ -595,6 +595,7 @@ class Factory if ($config && $config->get('capath')) { $remoteFilesystemOptions['ssl']['capath'] = $config->get('capath'); } + $remoteFilesystemOptions = array_replace_recursive($remoteFilesystemOptions, $options); } try { $remoteFilesystem = new RemoteFilesystem($io, $config, $remoteFilesystemOptions, $disableTls);