1
0
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:
Matthew Brown 2019-08-18 14:56:47 -04:00
parent eb50aad3a1
commit b6d0aeaa9c

View File

@ -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);
}