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

Fix #3403 - remove possibly-mixed key

This commit is contained in:
Brown 2020-05-19 16:12:37 -04:00
parent 4415e0f69c
commit baeb86ca8f

View File

@ -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();
}