diff --git a/lib/Braintree/HttpHelpers/CurlRequest.php b/lib/Braintree/HttpHelpers/CurlRequest.php index 5b1b6124..c77d72d4 100644 --- a/lib/Braintree/HttpHelpers/CurlRequest.php +++ b/lib/Braintree/HttpHelpers/CurlRequest.php @@ -46,6 +46,8 @@ public function getError() // phpcs:ignore PEAR.Commenting.FunctionComment.Missing public function close() { - curl_close($this->_handle); + if (PHP_VERSION_ID < 80000) { + curl_close($this->_handle); + } } }