1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-22 05:41:20 +01:00

Fix variable

This commit is contained in:
Brown 2019-09-26 15:53:41 -04:00
parent 73eb71bada
commit 4ec966d72a

View File

@ -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'])
) {