Parcourir la source

Changed array_merge to array_merge_recursive

Jordan Alliot il y a 13 ans
Parent
commit
b4d87af959
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      src/Composer/Util/StreamContextFactory.php

+ 1 - 1
src/Composer/Util/StreamContextFactory.php

@@ -49,7 +49,7 @@ final class StreamContextFactory
             );
         }
 
-        $options = array_merge($options, $defaultOptions);
+        $options = array_merge_recursive($options, $defaultOptions);
         
         return stream_context_create($options, $defaultParams);
     }