diff --git a/src/Common/HttpClient.php b/src/Common/HttpClient.php index 9828584..527bfba 100644 --- a/src/Common/HttpClient.php +++ b/src/Common/HttpClient.php @@ -248,7 +248,10 @@ public function sendRequest($method, $resourceName, $query = null, $headers = [] } $responseStatus = (int)curl_getinfo($curl, CURLINFO_HTTP_CODE); - curl_close($curl); + + if (PHP_VERSION_ID < 80000) { + curl_close($curl); + } // Split the header and body $parts = explode("\r\n\r\n", $response, 3);