From d7c92838ca6aeacd5a40a43c416a42ca62870059 Mon Sep 17 00:00:00 2001 From: Dima Driamov Date: Thu, 11 Jun 2026 14:16:17 +0300 Subject: [PATCH] Remove deprecated curl_close() call for PHP 8.5 --- Amazon/Pay/API/HttpCurl.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Amazon/Pay/API/HttpCurl.php b/Amazon/Pay/API/HttpCurl.php index a68d778..122e3c4 100644 --- a/Amazon/Pay/API/HttpCurl.php +++ b/Amazon/Pay/API/HttpCurl.php @@ -82,12 +82,12 @@ private function execute($ch) $response = curl_exec($ch); if ($response === false) { $error_msg = "Unable to send request, underlying exception of " . curl_error($ch); - curl_close($ch); + unset($ch); throw new \Exception($error_msg); } else { $this->curlResponseInfo = curl_getinfo($ch); } - curl_close($ch); + unset($ch); return $response; }