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:
parent
392f3194c0
commit
a5f639d879
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user