diff --git a/src/Composer/Util/RemoteFilesystem.php b/src/Composer/Util/RemoteFilesystem.php index 9f662e795..06fb8b80b 100644 --- a/src/Composer/Util/RemoteFilesystem.php +++ b/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); } /**