Skip to content

Commit e8490dd

Browse files
authored
Remove usage of deprecated curl_close() function (#452)
Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com>
1 parent 2bb59c1 commit e8490dd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/NewCommand.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,8 @@ protected function getLatestVersionData(string $package): string|false
366366
$httpCode = curl_getinfo($curl, CURLINFO_HTTP_CODE);
367367
$headerSize = curl_getinfo($curl, CURLINFO_HEADER_SIZE);
368368
$error = curl_error($curl);
369-
curl_close($curl);
369+
370+
unset($curl);
370371
} catch (Throwable $e) {
371372
return false;
372373
}

0 commit comments

Comments
 (0)