-
Notifications
You must be signed in to change notification settings - Fork 665
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
@psalm-suppress with misspelled/non-existing issue #6120
Comments
I found these snippets: https://psalm.dev/r/621dbf177f<?php
/**
* @psalm-suppress NonExistingIssue
*/
|
@caugner I'm not sure. Doesn't allowing If you don't want to use baselining and you can't fix all the |
In a large codebase, you will definitely want to use a baseline, or at least suppress issues globally or per directory. I would recommend to create a branch, update psalm there, and add all the required Note that Psalm config has a |
I don't think this can be done currently as those unknown issues may refer to descendants of |
I don't have a strong feeling about this - it's hard to imagine a scenario where a new psalm version introduces so many new issues that it would be really uncomfortable to keep a branch open long enough to add all the suppress tags, even if doing trunk based. And I agree adding them to the baseline is potentially better than adding |
I would expect that the following causes an error:
https://psalm.dev/r/621dbf177f
The text was updated successfully, but these errors were encountered: