mirror of
https://github.com/danog/psalm.git
synced 2025-01-23 06:11:25 +01:00
Revert one particular replacement that confuses Psalm
This commit is contained in:
parent
58e87fa5e0
commit
238b54abf8
@ -824,10 +824,10 @@ class CallAnalyzer
|
||||
|
||||
if ($orred_rules) {
|
||||
if (isset($type_assertions[$assertion_var_id])) {
|
||||
$type_assertions[$assertion_var_id] = [
|
||||
...$type_assertions[$assertion_var_id],
|
||||
...[$orred_rules]
|
||||
];
|
||||
$type_assertions[$assertion_var_id] = array_merge(
|
||||
$type_assertions[$assertion_var_id],
|
||||
[$orred_rules]
|
||||
);
|
||||
} else {
|
||||
$type_assertions[$assertion_var_id] = [$orred_rules];
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user