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:
parent
2617b68ca9
commit
4ea5329087
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user