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

zf create project warning PHP7.3 count(): Parameter must be an array or an object #15

Closed
martin-dufka opened this issue Sep 17, 2019 · 1 comment

Comments

@martin-dufka
Copy link

Hi,

can you see this?

PHP Warning: count(): Parameter must be an array or an object that implements Countable in .\zf1-future\library\Zend\Tool\Project\Profile\Resource\Container.php on line 386

I think that count() of boolean will never be an array or an object :)

It would be
return (count($this->_subResources) > 0) ? true : false;
instead of
return (count($this->_subResources > 0)) ? true : false;

isn't it?

@Shardj
Copy link
Owner

Shardj commented Sep 23, 2019

Thanks

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

2 participants