-
Notifications
You must be signed in to change notification settings - Fork 11k
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
LazyCollection::every()
type inferences by PHPStan are completely broken
#41369
Comments
I also hope that #40889 should be resolved although it is not directly related. It is very inconvenient that I'm currently trying to upgrade Laravel apps from 8.x to 9.x, but getting stuck with the PHPStan type inference problems of collection generics. |
Please just attempt a PR if you want to adjust anything. No code is broken. |
@driesvints I confirmed that it's not reproducible in newly cloned Screenshot: |
A clean install solved the problem. I can't reproducd the bug anymore regardless I haven't touch directly inside |
Reproduced again |
Re-published as a PHPStan issue: phpstan/phpstan#6768 |
Description & Reproduction Steps:
Expected:
Actual:
Though I haven't determined yet whether it is a PHPStan bug or a Laravel bug, I'll submit it as a Laravel issue for the time being.
The text was updated successfully, but these errors were encountered: