mirror of
https://github.com/danog/psalm.git
synced 2024-11-26 20:34:47 +01:00
Fix #3403 - remove possibly-mixed key
This commit is contained in:
parent
4415e0f69c
commit
baeb86ca8f
@ -83,7 +83,7 @@ class IteratorToArrayReturnTypeProvider implements \Psalm\Plugin\Hook\FunctionRe
|
||||
? $key_type
|
||||
: Type::getArrayKey();
|
||||
|
||||
if ($key_type->isMixed()) {
|
||||
if ($key_type->hasMixed()) {
|
||||
$key_type = Type::getArrayKey();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user