-
-
Notifications
You must be signed in to change notification settings - Fork 863
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 message hints at deprecated option checkGenericClassInNonGenericObjectType
#11000
Comments
This bug report is missing a link to reproduction at phpstan.org/try. It will most likely be closed after manual review. |
I'll remove the tip altogether (I really don't want people to ignore this anymore 😅 ), what do you think? |
You could instead point users to https://phpstan.org/blog/solving-phpstan-no-value-type-specified-in-iterable-type |
But that's different... I'll probably add tips about how to solve different generics errors in the future. |
Thanks! |
Bug report
I'm using PHPStan 1.11.0 on a codebase that uses a generic class without specifying its template types:
PHPStan rightfully complains about that, but lures me into using a deprecated option:
Following that suggestion, I get:
Code snippet that reproduces the problem
No response
Expected output
I think, the hint should be updated to reflect the new error identifier system.
Did PHPStan help you today? Did it make you happy in any way?
Great work with the new error identifier system. ❤️
The text was updated successfully, but these errors were encountered: