-
Notifications
You must be signed in to change notification settings - Fork 542
Add error reporting for unresolvable types in @phpstan-assert tags #3531
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
Conversation
a6a9831
to
3d82da8
Compare
Better fit would be to add it to AssertRuleHelper. We need to check for:
|
This pull request has been marked as ready for review. |
continue; | ||
} | ||
|
||
if ($assert->getType() instanceof ErrorType) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Call UnresolvableTypeHelper instead please. You should follow the code samples I sent you :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also please add all the other things that should be checked too.
I'm sorry, I'm in a bit of a hurry, finishing this myself. |
Superseded by ca0a7e9 |
Fix phpstan/phpstan#11780