diff --git a/src/Curl.php b/src/Curl.php index 3cc3df5..49fe905 100644 --- a/src/Curl.php +++ b/src/Curl.php @@ -358,7 +358,11 @@ public function handler(): bool \CURLOPT_PROGRESSFUNCTION => null ]); \curl_reset($this->curl); - \curl_close($this->curl); + + if (PHP_VERSION_ID < 80500) { + \curl_close($this->curl); + } + $this->curl = null; } return !empty($this->exec);