We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent feb2ca6 commit b5a44b6Copy full SHA for b5a44b6
src/JsonSchema/Uri/Retrievers/FileGetContents.php
@@ -49,6 +49,11 @@ public function retrieve($uri)
49
}
50
51
$this->messageBody = $response;
52
+ if (function_exists('http_get_last_response_headers')) {
53
+ // Use http_get_last_response_headers() for BC compatibility with PHP 8.5+
54
+ // where $http_response_header is deprecated.
55
+ $http_response_header = http_get_last_response_headers();
56
+ }
57
if (!empty($http_response_header)) {
58
// $http_response_header cannot be tested, because it's defined in the method's local scope
59
// See http://php.net/manual/en/reserved.variables.httpresponseheader.php for more info.
0 commit comments