1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-21 21:31:13 +01:00

Hide mixed errors if your error level is >= 3

This commit is contained in:
Matthew Brown 2020-02-18 19:57:38 -05:00
parent aea33824e6
commit 23b9331f6d

View File

@ -1260,7 +1260,7 @@ class Config
*/
public function reportIssueInFile($issue_type, $file_path)
{
if ($this->suppress_mixed_issues && in_array($issue_type, self::MIXED_ISSUES, true)) {
if (($this->suppress_mixed_issues || $this->level > 2) && in_array($issue_type, self::MIXED_ISSUES, true)) {
return false;
}