1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-12 01:09:38 +01:00

get rid of the final check that was there only for static:: before

This commit is contained in:
orklah 2021-08-17 23:40:03 +02:00
parent ee53c57952
commit 2b37bdf253

View File

@ -670,12 +670,10 @@ class ClassConstFetchAnalyzer
}
}
if ($const_class_storage->final) {
$stmt_type = clone $class_constant_type;
$stmt_type = clone $class_constant_type;
$statements_analyzer->node_data->setType($stmt, $stmt_type);
$context->vars_in_scope[$const_id] = $stmt_type;
}
$statements_analyzer->node_data->setType($stmt, $stmt_type);
$context->vars_in_scope[$const_id] = $stmt_type;
return true;
}