We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
UnusedIssueHandlerSuppression
<errorLevel type="info">
psalm.xml:
<?xml version="1.0"?> <psalm errorLevel="1" findUnusedPsalmSuppress="true" .... > ... <issueHandlers> <DeprecatedMethod> <errorLevel type="info"> <referencedMethod name="Foo::bar"/> </errorLevel> </DeprecatedMethod> </issueHandlers> </psalm>
Code:
<?php class Foo { /** @deprecated */ public static function bar(): void {} } Foo::bar();
Running psalm results in:
psalm
ERROR: UnusedIssueHandlerSuppression - [...]/psalm.xml:0:0 - Suppressed issue type "DeprecatedMethod" for was not thrown. (see https://psalm.dev/326)
(side note: remark the missing part between for was.)
for was
The error disappears when running psalm --show-info=true. It also disappears when using <DeprecatedMethod errorLevel="info"/>.
psalm --show-info=true
<DeprecatedMethod errorLevel="info"/>
The text was updated successfully, but these errors were encountered:
Hey @gharlan, can you reproduce the issue on https://psalm.dev? These will be used as phpunit tests when implementing the feature or fixing this bug.
Sorry, something went wrong.
No branches or pull requests
psalm.xml:
Code:
Running
psalm
results in:(side note: remark the missing part between
for was
.)The error disappears when running
psalm --show-info=true
.It also disappears when using
<DeprecatedMethod errorLevel="info"/>
.The text was updated successfully, but these errors were encountered: