mirror of
https://github.com/danog/psalm.git
synced 2025-01-22 05:41:20 +01:00
Fix variable
This commit is contained in:
parent
73eb71bada
commit
4ec966d72a
@ -1480,6 +1480,8 @@ class ExpressionAnalyzer
|
||||
&& isset($context->vars_in_scope[$var_comment->var_id])
|
||||
&& $context->vars_in_scope[$var_comment->var_id]->getId() === $comment_type->getId()
|
||||
) {
|
||||
$project_analyzer = $statements_analyzer->getProjectAnalyzer();
|
||||
|
||||
if ($codebase->alter_code
|
||||
&& isset($project_analyzer->getIssuesToFix()['UnnecessaryVarAnnotation'])
|
||||
) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user