From 0c2b10709ee746b460f7d52ec27d6b91b3ee6ada Mon Sep 17 00:00:00 2001 From: Matthew Brown Date: Mon, 17 Feb 2020 18:43:40 -0500 Subject: [PATCH] If no level or totallyTyped is given, use level 2 --- src/Psalm/Config.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Psalm/Config.php b/src/Psalm/Config.php index 8cfac9b4f..52aadcb05 100644 --- a/src/Psalm/Config.php +++ b/src/Psalm/Config.php @@ -835,9 +835,7 @@ class Config } $config->level = $attribute_text; - } - - if (isset($config_xml['totallyTyped'])) { + } elseif (isset($config_xml['totallyTyped'])) { $totally_typed = $config_xml['totallyTyped']; if ($totally_typed === 'true' || $totally_typed === '1') { @@ -845,6 +843,8 @@ class Config } else { $config->level = 2; } + } else { + $config->level = 2; } if (isset($config_xml['errorBaseline'])) {