From 072f349b57bfd128051f53cb4916c9e7d4d923e1 Mon Sep 17 00:00:00 2001 From: Sebastien Marinier Date: Thu, 1 Oct 2026 11:46:55 +0200 Subject: [PATCH 1/2] fix: #250 deprecated curl_close --- src/Http/Transport/CurlTransport.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Http/Transport/CurlTransport.php b/src/Http/Transport/CurlTransport.php index 8f537677..08212bc1 100644 --- a/src/Http/Transport/CurlTransport.php +++ b/src/Http/Transport/CurlTransport.php @@ -111,7 +111,7 @@ public function request(TransportRequest $request): TransportResponse throw new NetworkException('Bad response.', $httpCode); } - curl_close($ch); + $ch = null; // close curl handle $sessionId = null; if (isset($headers['set-cookie'])) { From 5ea046b4fbc6868f2e7c5befce1af8423ebccd88 Mon Sep 17 00:00:00 2001 From: Samuel Weirich <4281791+samuelwei@users.noreply.github.com> Date: Thu, 1 Oct 2026 12:38:13 +0200 Subject: [PATCH 2/2] Fix rector --- src/Http/Transport/CurlTransport.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Http/Transport/CurlTransport.php b/src/Http/Transport/CurlTransport.php index 08212bc1..7336510f 100644 --- a/src/Http/Transport/CurlTransport.php +++ b/src/Http/Transport/CurlTransport.php @@ -111,7 +111,7 @@ public function request(TransportRequest $request): TransportResponse throw new NetworkException('Bad response.', $httpCode); } - $ch = null; // close curl handle + unset($ch); // close curl handle $sessionId = null; if (isset($headers['set-cookie'])) {