1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-21 21:31:13 +01:00

Exit properly when encountering classes we cannot deal with

This commit is contained in:
Matthew Brown 2016-10-18 11:25:15 -04:00
parent 991806a2c4
commit d247cead09

View File

@ -1795,7 +1795,7 @@ class StatementsChecker
// Hack has a similar issue: https://github.com/facebook/hhvm/issues/5164
if ($lhs_type_part->isObject() || in_array(strtolower($lhs_type_part->value), ['stdclass', 'simplexmlelement', 'dateinterval', 'domdocument', 'domnode'])) {
$context->vars_in_scope[$var_id] = Type::getMixed();
continue;
return;
}
if (self::isMock($lhs_type_part->value)) {