1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-27 04:45:20 +01:00

Fix array type conversion

This commit is contained in:
Matthew Brown 2018-04-18 23:49:09 -04:00
parent 392f3194c0
commit a5f639d879

View File

@ -233,7 +233,7 @@ class ForeachChecker
|| $array_atomic_type instanceof Type\Atomic\ObjectLike
) {
if ($array_atomic_type instanceof Type\Atomic\ObjectLike) {
$array_atomic_type = $array_atomic_type->getGenericValueType();
$array_atomic_type = $array_atomic_type->getGenericArrayType();
}
$key_type_part = $array_atomic_type->type_params[0];