Skip to content

Commit

Permalink
Hide mixed issues if totallyTyped="false"
Browse files Browse the repository at this point in the history
  • Loading branch information
muglug committed Feb 19, 2020
1 parent 23b9331 commit c9494c4
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/Psalm/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit c9494c4

Please sign in to comment.