Skip to content

Commit 11c54b7

Browse files
committed
Replace curl_close with unset
1 parent 6fe9982 commit 11c54b7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Client.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,18 +67,18 @@ public function run(Request $request) : Response
6767
if ($body === false) {
6868
$error = \curl_error($handle);
6969
$errno = \curl_errno($handle);
70-
\curl_close($handle);
70+
unset($handle);
7171
throw new RequestException(
7272
$error,
7373
$errno,
7474
info: $info
7575
);
7676
}
77-
\curl_close($handle);
7877
if ($body === true) {
7978
$body = '';
8079
}
8180
$objectId = \spl_object_id($handle);
81+
unset($handle);
8282
$response = new Response(
8383
$request,
8484
$this->parsed[$objectId]['protocol'],

0 commit comments

Comments
 (0)