Skip to content

Commit 4f9ed90

Browse files
committed
1.1.1 release
- Fix PHP 8.5 deprecations
1 parent b61c59d commit 4f9ed90

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
Semantic versioning 2.0 is followed.
44

5+
# 1.1.1
6+
7+
- Fix PHP 8.5 deprecations
8+
59
# 1.1.0
610

711
- PHP 8.2 support

src/Client.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,9 @@ public function sendRequest(RequestInterface $request): ResponseInterface
7575
$this->curlRequest($request, $responseData);
7676
$response = $this->getResponse($responseData);
7777
} catch (Throwable $ex) {
78-
curl_close($this->curl);
78+
if (PHP_VERSION_ID < 80500) {
79+
curl_close($this->curl);
80+
}
7981
if (null !== $this->transferHandlerCollection) {
8082
foreach ($this->transferHandlerCollection as $handler) {
8183
$handler->handleException($ex);
@@ -93,7 +95,7 @@ public function sendRequest(RequestInterface $request): ResponseInterface
9395
}
9496
}
9597

96-
if (isset($this->curl)) {
98+
if (isset($this->curl) && PHP_VERSION_ID < 80500) {
9799
curl_close($this->curl);
98100
}
99101
return $response;

0 commit comments

Comments
 (0)