-
-
Notifications
You must be signed in to change notification settings - Fork 2
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
Return type of WP_CLI\Iterators\CSV::count() should either be compatible with Countable::count(): int #16
Comments
Hello @m1r0 👋🏻 In this repo there are so many things against solving your problem. Anyways, have you seen wp-cli/wp-cli#5743 ? Are you using 2.8.0? |
Oh, sorry, I did a few tests using the older version and I've used the wrong error log. Here's the correct one:
I've updated the issue to reflect the above. Reading your response, it sounds like this needs to be fixed in the wp-cli/wp-cli repo first. Is that correct? |
Yes! Please search for "Iterator" https://github.com/search?q=repo%3Awp-cli%2Fwp-cli%20Iterator&type=code or use PHPStan. |
This seems to be fixed there now but the stubs still throws this error for me 🤔 Using: throwing errors:
Edit: Not sure if it is relevant or not but this is running PHP 8.1. |
@jonathan-dejong Thank you! |
@szepeviktor Not sure.. I got the error to go away for now by not including the |
Hey, first, thanks for making this! It makes my life easier.
I've stumbled on the following error when running it with Psalm on PHP 8.1:
Let me know if you need more info. Thanks. 🙏
The text was updated successfully, but these errors were encountered: