Skip to content

Remove deprecated curl_close() call #78

Description

@michalfelski

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions