mirror of
https://github.com/danog/psalm.git
synced 2024-11-27 04:45:20 +01:00
Prohibit objectlike to list
This commit is contained in:
parent
e620c2cfa4
commit
2ae76bbc8e
@ -1876,9 +1876,12 @@ class TypeAnalyzer
|
||||
|
||||
if ($container_type_part instanceof TList
|
||||
&& $input_type_part instanceof ObjectLike
|
||||
&& $input_type_part->is_list
|
||||
) {
|
||||
$input_type_part = $input_type_part->getList();
|
||||
if ($input_type_part->is_list) {
|
||||
$input_type_part = $input_type_part->getList();
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
if ($container_type_part instanceof TList
|
||||
|
Loading…
Reference in New Issue
Block a user