1
0
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:
Matt Brown 2020-11-10 14:36:36 -05:00 committed by Daniil Gentili
parent 9fbde82d84
commit e34171c375
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7

View File

@ -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);
}