mirror of
https://github.com/danog/psalm.git
synced 2025-01-22 13:51:54 +01:00
Fix coalesce operation tainting
This commit is contained in:
parent
9fbde82d84
commit
e34171c375
@ -1268,10 +1268,6 @@ class AssignmentAnalyzer
|
||||
$statements_analyzer->node_data = $old_data_provider;
|
||||
|
||||
if ($fake_coalesce_type) {
|
||||
if ($array_var_id) {
|
||||
$context->vars_in_scope[$array_var_id] = $fake_coalesce_type;
|
||||
}
|
||||
|
||||
$statements_analyzer->node_data->setType($stmt, $fake_coalesce_type);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user