mirror of
https://github.com/danog/psalm.git
synced 2024-12-13 01:37:23 +01:00
get rid of the final check that was there only for static:: before
This commit is contained in:
parent
ee53c57952
commit
2b37bdf253
@ -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);
|
$statements_analyzer->node_data->setType($stmt, $stmt_type);
|
||||||
$context->vars_in_scope[$const_id] = $stmt_type;
|
$context->vars_in_scope[$const_id] = $stmt_type;
|
||||||
}
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user