Skip to content

Commit c430749

Browse files
authored
Remove curl_close() as it does nothing and is deprecated in PHP 8.5 (#17)
1 parent 8c28db7 commit c430749

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

lib/WebDriver/Service/CurlService.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,6 @@ public function execute($requestMethod, $url, $parameters = null, $extraOptions
114114
CURLE_GOT_NOTHING !== ($errno = curl_errno($curl)) &&
115115
$error = curl_error($curl)
116116
) {
117-
curl_close($curl);
118-
119117
$e = new CurlExecException(
120118
sprintf(
121119
"Curl error thrown for http %s to %s%s\n\n%s",
@@ -132,8 +130,6 @@ public function execute($requestMethod, $url, $parameters = null, $extraOptions
132130
throw $e;
133131
}
134132

135-
curl_close($curl);
136-
137133
return array($rawResult, $info);
138134
}
139135
}

0 commit comments

Comments
 (0)