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