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