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; }