Skip to content

Using PHP 7.3 cause a error on line 741  #3

@xmaxmex

Description

@xmaxmex

Its about the function count().

If made this change, its fine to go:

} while ($is_get_more_data || call_user_func_array($get_more_data_cb, array((is_countable($data) && count($data)), $c, &$userData)));

But PHP < 7, doesnt have this funcion is_countable().

And i use this on top of the class:

if (!function_exists('is_countable')) {
function is_countable($var) {
return (is_array($var) || $var instanceof Countable);
}
}

Any ideas ?

Great Work ;)

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