From 5b44e7508ea61f2fe693cde2a6f8e36e6202329f Mon Sep 17 00:00:00 2001 From: Dave Mc Nicoll Date: Fri, 17 Nov 2023 08:19:49 -0500 Subject: [PATCH] - Added default list array items on HTTP header --- src/Transport/CurlTransport.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Transport/CurlTransport.php b/src/Transport/CurlTransport.php index 0c6806e..746f0f2 100644 --- a/src/Transport/CurlTransport.php +++ b/src/Transport/CurlTransport.php @@ -98,7 +98,7 @@ abstract class CurlTransport { $response = $response->withHeader($key, $value); } elseif ( strtoupper(substr($headerLine, 0, 4)) === 'HTTP' ) { - list(,$code, $status) = explode(' ', trim($headerLine), 3); + list(,$code, $status) = explode(' ', trim($headerLine), 3) + [ null, null, null ]; $response = $response->withStatus($code, $status); }