From c9371788c55bfa9344cb61e423431edccef5a5d7 Mon Sep 17 00:00:00 2001 From: Aaron Parecki Date: Mon, 30 Jul 2018 18:57:25 -0700 Subject: [PATCH] fix for old php --- lib/XRay/Fetcher.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/XRay/Fetcher.php b/lib/XRay/Fetcher.php index 2ff3e4a..93a9891 100644 --- a/lib/XRay/Fetcher.php +++ b/lib/XRay/Fetcher.php @@ -99,7 +99,7 @@ class Fetcher { return [ 'error' => 'invalid_content', 'error_description' => 'The server did not return a recognized content type', - 'content_type' => $result['headers']['Content-Type'] ?? null, + 'content_type' => isset($result['headers']['Content-Type']) ? $result['headers']['Content-Type'] : null, 'url' => $result['url'], 'code' => $result['code'] ];