Skip to content

Client.php:920 error .. count(): Parameter must be an array or an object that implements Countable #13

@nekhbet

Description

@nekhbet

Hello,

Can you please correct it?

As of PHP 7.2 var_dump(count(null)); will throw that error, the fix is simple:

instead of

} elseif (count($args) == 1 && !empty($args['remoteAddress'])) {

replace with

} elseif (is_array($args) && count($args) == 1 && !empty($args['remoteAddress'])) {

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions