1
0
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:
Matthew Brown 2020-02-18 09:40:21 -05:00 committed by GitHub
parent 9866b292a4
commit 201d54f232
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;