Skip to content

Commit

Permalink
Convert to string before comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
muglug authored Feb 18, 2020
1 parent 9866b29 commit 201d54f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Psalm/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -836,7 +836,7 @@ private static function fromXmlAndPaths(string $base_dir, string $file_contents,

$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;
Expand Down

0 comments on commit 201d54f

Please sign in to comment.