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

Add ObjectLike check in

This commit is contained in:
Matthew Brown 2016-10-03 01:35:54 -04:00
parent 1d10d8e8a2
commit e04441b8ac

View File

@ -104,7 +104,7 @@ class Context
return;
}
if ($type->hasArray() || $type->hasObjectType() || $type->isMixed()) {
if ($type->hasArray() || $type->hasObjectType() || $type->hasObjectLike() || $type->isMixed()) {
$vars_to_remove = [];
foreach ($this->vars_in_scope as $var_id => $context_type) {