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:
parent
991806a2c4
commit
d247cead09
@ -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)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user