Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using PHP 7.3 cause a error on line 741 #3

Open
xmaxmex opened this issue Sep 14, 2022 · 0 comments
Open

Using PHP 7.3 cause a error on line 741 #3

xmaxmex opened this issue Sep 14, 2022 · 0 comments

Comments

@xmaxmex
Copy link

xmaxmex commented Sep 14, 2022

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 ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant