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

Never assign never to an array

This commit is contained in:
Daniil Gentili 2022-12-19 17:49:09 +01:00
parent 2617b68ca9
commit 4ea5329087

View File

@ -1093,6 +1093,10 @@ class Reconciler
array &$changed_var_ids,
Union $result_type
): void {
if ($result_type->isNever()) {
return;
}
array_pop($key_parts);
$array_key = array_pop($key_parts);
array_pop($key_parts);