mirror of
https://github.com/danog/psalm.git
synced 2024-11-26 20:34:47 +01:00
If no level or totallyTyped is given, use level 2
This commit is contained in:
parent
f49c896f94
commit
0c2b10709e
@ -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'])) {
|
||||
|
Loading…
Reference in New Issue
Block a user