mirror of
https://github.com/danog/psalm.git
synced 2024-11-27 04:45:20 +01:00
Convert to string before comparison
This commit is contained in:
parent
9866b292a4
commit
201d54f232
@ -836,7 +836,7 @@ class Config
|
||||
|
||||
$config->level = $attribute_text;
|
||||
} elseif (isset($config_xml['totallyTyped'])) {
|
||||
$totally_typed = $config_xml['totallyTyped'];
|
||||
$totally_typed = (string) $config_xml['totallyTyped'];
|
||||
|
||||
if ($totally_typed === 'true' || $totally_typed === '1') {
|
||||
$config->level = 1;
|
||||
|
Loading…
Reference in New Issue
Block a user