mirror of
https://github.com/danog/psalm.git
synced 2025-01-22 22:01:48 +01:00
Make reportInfo="false" flag better
This commit is contained in:
parent
bc040945ca
commit
400ac0f759
@ -1465,6 +1465,10 @@ class Config
|
|||||||
$reporting_level = $this->getReportingLevelForFile($issue_type, $e->getFilePath());
|
$reporting_level = $this->getReportingLevelForFile($issue_type, $e->getFilePath());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!$this->report_info && $reporting_level === self::REPORT_INFO) {
|
||||||
|
$reporting_level = self::REPORT_SUPPRESS;
|
||||||
|
}
|
||||||
|
|
||||||
$parent_issue_type = self::getParentIssueType($issue_type);
|
$parent_issue_type = self::getParentIssueType($issue_type);
|
||||||
|
|
||||||
if ($parent_issue_type && $reporting_level === Config::REPORT_ERROR) {
|
if ($parent_issue_type && $reporting_level === Config::REPORT_ERROR) {
|
||||||
@ -1593,7 +1597,7 @@ class Config
|
|||||||
$issue_level = $issue_class::ERROR_LEVEL;
|
$issue_level = $issue_class::ERROR_LEVEL;
|
||||||
|
|
||||||
if ($issue_level > 0 && $issue_level < $this->level) {
|
if ($issue_level > 0 && $issue_level < $this->level) {
|
||||||
return $this->report_info ? self::REPORT_INFO : self::REPORT_SUPPRESS;
|
return self::REPORT_INFO;
|
||||||
}
|
}
|
||||||
|
|
||||||
return self::REPORT_ERROR;
|
return self::REPORT_ERROR;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user