From 9d740737b56890d9465bf8370d53e872e47e0293 Mon Sep 17 00:00:00 2001 From: Chuck Kato Date: Mon, 19 Aug 2024 16:26:39 -0700 Subject: [PATCH] Avoids a warning about the undefined variable in the case file_get_contents fails --- lib/recurly/http_adapter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/recurly/http_adapter.php b/lib/recurly/http_adapter.php index 9899c5ea..975c64bd 100644 --- a/lib/recurly/http_adapter.php +++ b/lib/recurly/http_adapter.php @@ -52,6 +52,6 @@ public function execute($method, $url, $body, $headers): array } } } - return [$result, $http_response_header]; + return [$result, $http_response_header ?? null]; } }