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

ErrorException in Builder.php line 1185: #297

Open
shammas123 opened this issue Jul 30, 2018 · 2 comments
Open

ErrorException in Builder.php line 1185: #297

shammas123 opened this issue Jul 30, 2018 · 2 comments

Comments

@shammas123
Copy link

count(): Parameter must be an array or an object that implements Countable

@leopinzon
Copy link

@shammas123 Hi there. Check your PHP version, this error usually happens in PHP 7.2, that's why it isn't supported (yet). Try using PHP 7.1

@jarielfloriano
Copy link

This error is caused by the PHP version.

Modify line 1185 of the Builder.php file

$originalWhereCount = count ($ query-> wheres);

to

$originalWhereCount = 0;
        if (is_array ($ query-> wheres) || is_object ($ query-> wheres)) {
$originalWhereCount = count ($ query-> wheres);
}

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

3 participants