From c9494c43a3cbb5a96d7eef6a5bfc8ad0041dd63f Mon Sep 17 00:00:00 2001 From: Matthew Brown Date: Tue, 18 Feb 2020 20:08:09 -0500 Subject: [PATCH] Hide mixed issues if totallyTyped="false" --- src/Psalm/Config.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/Psalm/Config.php b/src/Psalm/Config.php index 13c443a6c71..7e6fa8609ed 100644 --- a/src/Psalm/Config.php +++ b/src/Psalm/Config.php @@ -246,9 +246,9 @@ class Config public $level = 1; /** - * @var bool + * @var ?bool */ - public $suppress_mixed_issues = false; + public $suppress_mixed_issues = null; /** @var bool */ public $strict_binary_operands = false; @@ -848,6 +848,10 @@ private static function fromXmlAndPaths(string $base_dir, string $file_contents, $config->level = 1; } else { $config->level = 2; + + if ($config->suppress_mixed_issues === null) { + $config->suppress_mixed_issues = true; + } } } else { $config->level = 2;