From 3ee854f37ace820e66d84121ede40d49647e1440 Mon Sep 17 00:00:00 2001 From: Chirag Aggarwal Date: Wed, 29 Apr 2026 15:47:13 +0530 Subject: [PATCH 1/2] Remove deprecated curl_close calls --- src/Abuse/Adapters/ReCaptcha.php | 1 - 1 file changed, 1 deletion(-) diff --git a/src/Abuse/Adapters/ReCaptcha.php b/src/Abuse/Adapters/ReCaptcha.php index 0a81202..a8b15c9 100644 --- a/src/Abuse/Adapters/ReCaptcha.php +++ b/src/Abuse/Adapters/ReCaptcha.php @@ -81,7 +81,6 @@ public function check(float $score = 0.5): bool $result = \json_decode((string) \curl_exec($ch), true); //close connection - \curl_close($ch); if ($result['success'] && $result['score'] >= $score) { return true; } else { From d2c834fd5ce8ed81924b08a3435b11072d7747fc Mon Sep 17 00:00:00 2001 From: Chirag Aggarwal Date: Wed, 29 Apr 2026 15:51:55 +0530 Subject: [PATCH 2/2] Clean up curl_close removal formatting --- src/Abuse/Adapters/ReCaptcha.php | 1 - 1 file changed, 1 deletion(-) diff --git a/src/Abuse/Adapters/ReCaptcha.php b/src/Abuse/Adapters/ReCaptcha.php index a8b15c9..7e1f67c 100644 --- a/src/Abuse/Adapters/ReCaptcha.php +++ b/src/Abuse/Adapters/ReCaptcha.php @@ -80,7 +80,6 @@ public function check(float $score = 0.5): bool /** @var array $result */ $result = \json_decode((string) \curl_exec($ch), true); - //close connection if ($result['success'] && $result['score'] >= $score) { return true; } else {