-
Notifications
You must be signed in to change notification settings - Fork 651
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
request for referencedClass to allow missing @throws
exceptions of specified types to be suppressed
#8638
Comments
Hey @SignpostMarv, can you reproduce the issue on https://psalm.dev ? |
Do you have more details? Did you try and it doesn't work or is it more that refereencedClass can't be used for MissingThrows or something? Can you also post an example of an error? |
MissingThrowsDocblock isn't of the appropriate type, per the xml schema. An example of the issue in question is whenever you use phpunit and make an assertion, checking for missing throws docblock will raise the seb exception for assertion arguments and the phpunit exception for when assertions fail. |
I think it's just a matter of making MissingThrowsDocblock extends ClassIssue instead of CodeIssue and changing xml category also. This will make __construct take the classname as additional parameter so you'd need to change the single instance creation too. |
@orklah my concern would be as-written that |
IIRC, referencedClass concern the class that is referenced by the Issue (For example, if you want to suppress So, for me the logic is the same |
It'd be nice to be able to ignore missing phpunit-internal
@throws
docblock issuesrelates to #2297
i.e.
The text was updated successfully, but these errors were encountered: