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

useless comparison (#4223)

* remove unused code

* fix wrong fix
This commit is contained in:
orklah 2020-09-20 19:01:27 +02:00 committed by Daniil Gentili
parent 9f00b8536a
commit 13c291c63f
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7

View File

@ -706,7 +706,6 @@ class ArrayAssignmentAnalyzer
}
} elseif ($type instanceof TNonEmptyList
&& $key_value instanceof Type\Atomic\TLiteralInt
&& ($key_value->value === $key_value->value || $key_value->value < $type->count)
&& count($key_values) === 1
) {
$has_matching_objectlike_property = true;