-
Notifications
You must be signed in to change notification settings - Fork 506
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
Fix count()
regression
#3895
Fix count()
regression
#3895
Conversation
//cc @herndlm |
Wow, you beat me to it it seems. I didn't even have time to get to a computer yet. Thx! But I was also not expecting for the fix to be this tbh 🤔 Maybe you can rename the variable too :) |
I guess we are narrowing a NonEmptyArray with a count(0) down the line. but I could not pinpoint where exactly. |
Thank you! I'll report back if testing on real-world projects finds more problems. Otherwise I'll be able to release 2.1.9. |
@ondrejmirtes just give me a minute, I think I can do a tiny cleanup of an edge case I was handling there which is now covered by @staabm's adaption because the explanation with non-empty-array felt very very familiar :) |
Yeah, sure :) |
Is already covered by the adaption of phpstan#3895
--> #3896 |
Is already covered by the adaption of #3895
fix regression mentioned in #3876 (comment)
followup to #3889