Skip to content

Commit 808df9b

Browse files
fix: disable curl_close call for PHP < 8, where it no longer has any effect
1 parent b24861a commit 808df9b

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/HttpClientWrapper.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,9 @@ public function __construct(
7373
public function __destruct()
7474
{
7575
if ($this->customHttpClient === null) {
76-
\curl_close($this->curlHandle);
76+
if (PHP_VERSION_ID < 80000) {
77+
\curl_close($this->curlHandle);
78+
}
7779
}
7880
}
7981

0 commit comments

Comments
 (0)