Эх сурвалжийг харах

Fix RemoteFilesystem::getRemoteContents() on-failure behavior

Nicolas Grekas 7 жил өмнө
parent
commit
3b391191b9

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

@@ -551,7 +551,7 @@ class RemoteFilesystem
     {
         $contents = file_get_contents($fileUrl, false, $context);
 
-        return array($http_response_header, $contents);
+        return array(isset($http_response_header) ? $http_response_header : null, $contents);
     }
 
     /**