mirror of
https://github.com/danog/psalm.git
synced 2024-11-30 04:39:00 +01:00
Avoid erroneous issue suppression complaints
This commit is contained in:
parent
eb50aad3a1
commit
b6d0aeaa9c
@ -302,6 +302,11 @@ class StatementsAnalyzer extends SourceAnalyzer implements StatementsSource
|
||||
foreach ($suppressed as $offset => $issue_type) {
|
||||
$offset += $docblock->getFilePos();
|
||||
$new_issues[$offset] = $issue_type;
|
||||
|
||||
if ($issue_type === 'InaccessibleMethod') {
|
||||
continue;
|
||||
}
|
||||
|
||||
IssueBuffer::addUnusedSuppression($this->getFilePath(), $offset, $issue_type);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user