Skip to content

PHP 8.5 Deprecation: curl_close() #72

Description

@Soean

When I run DeepL with PHP 8.5, I get a deprecation notice.

Deprecated: Function curl_close() is deprecated since 8.5, as it has no effect since PHP 8.0

See https://www.php.net/manual/en/function.curl-close.php

https://github.com/DeepLcom/deepl-php/blob/68d192da11791ae249b35b3a3f87008a1cf1d298/src/HttpClientWrapper.php#L76

We should add a check:

if (PHP_VERSION_ID < 80000) {
   \curl_close($this->curlHandle);
}

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