1
0
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:
Matthew Brown 2019-10-08 21:38:01 -04:00
parent e620c2cfa4
commit 2ae76bbc8e

View File

@ -1876,9 +1876,12 @@ class TypeAnalyzer
if ($container_type_part instanceof TList
&& $input_type_part instanceof ObjectLike
&& $input_type_part->is_list
) {
if ($input_type_part->is_list) {
$input_type_part = $input_type_part->getList();
} else {
return false;
}
}
if ($container_type_part instanceof TList