The curl_close() function has no effect in PHP 8 and later. Since this package already requires PHP 8, this call can be safely removed.
Starting with PHP 8.5, calling curl_close() triggers a deprecation warning, so keeping it in the codebase may cause unnecessary noise in logs or test output.
Currently, the only PHP 8-specific function used in the code appears to be str_starts_with(). If compatibility with PHP versions older than 8.0 needs to be restored, str_starts_with() would need to be replaced, and the curl_close() call should be guarded with a PHP version check, for example:
if (version_compare(PHP_VERSION, '8.0.0', '<')) {
curl_close($curl);
}
Otherwise, if PHP 8 remains the minimum supported version, the curl_close() call can simply be removed.
Thank you for your support
The curl_close() function has no effect in PHP 8 and later. Since this package already requires PHP 8, this call can be safely removed.
Starting with PHP 8.5, calling curl_close() triggers a deprecation warning, so keeping it in the codebase may cause unnecessary noise in logs or test output.
Currently, the only PHP 8-specific function used in the code appears to be str_starts_with(). If compatibility with PHP versions older than 8.0 needs to be restored, str_starts_with() would need to be replaced, and the curl_close() call should be guarded with a PHP version check, for example:
Otherwise, if PHP 8 remains the minimum supported version, the curl_close() call can simply be removed.
Thank you for your support