Skip to content

PHP 8.4 compatibility #60

@denishrynko

Description

@denishrynko

PHP 8.4 is now throwing ValueError if php_uname() argument is not a single character

I know such high PHP version support is not declared in the lib, but I guess it can be fixed very fast and easily

Translator.php:758

$platformStr = php_uname('s r v m');

Fatal error: Uncaught ValueError: php_uname(): Argument #1 ($mode) must be a single character in /var/www/html/system/vendor/deeplcom/deepl-php/src/Translator.php on line 758

I suggest using php_uname('a'); or concatenate needed parts

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions