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

Error on PHP7.2 : count(): Parameter must be an array or an object that implements Countable #81

Open
mufeelfls opened this issue May 24, 2018 · 5 comments

Comments

@mufeelfls
Copy link

Hi

I am getting the following error running the service on Laravel 5.6 on a PHP 7.2 stack

Google \ Cloud \ Core \ Exception \ ServiceException
count(): Parameter must be an array or an object that implements Countable
@sergomet
Copy link

sergomet commented Dec 9, 2018

I am getting same error.

@nicja
Copy link
Contributor

nicja commented Apr 18, 2019

Can you please provide a full stack trace?

@Charles-March
Copy link

@mufeelfls I'm actually facing the same issue, have you found any solutions ?
cc @sergomet

@sergomet
Copy link

@stractus I switched to php7.1 to quick fix

@Charles-March
Copy link

Charles-March commented May 20, 2020

@sergomet the problem seems to be from the authentification part.
By digging in depencies I found that the guzzlehttp is not compatible with php 7.2. So by setting "guzzlehttp/guzzle": "6.5.3" in my composer.json I resolved the issue.

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

No branches or pull requests

4 participants