File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22
33Semantic 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
Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments