From 7b9158fe90813dcccc07f974efda323746589e76 Mon Sep 17 00:00:00 2001 From: Mior Muhammad Zaki Date: Wed, 3 Dec 2025 09:15:37 +0800 Subject: [PATCH] Remove usage of deprecated `curl_close()` function Signed-off-by: Mior Muhammad Zaki --- src/NewCommand.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/NewCommand.php b/src/NewCommand.php index aa5ff39..39174a9 100644 --- a/src/NewCommand.php +++ b/src/NewCommand.php @@ -366,7 +366,8 @@ protected function getLatestVersionData(string $package): string|false $httpCode = curl_getinfo($curl, CURLINFO_HTTP_CODE); $headerSize = curl_getinfo($curl, CURLINFO_HEADER_SIZE); $error = curl_error($curl); - curl_close($curl); + + unset($curl); } catch (Throwable $e) { return false; }