Skip to content
Permalink
Browse files

Fix ref

  • Loading branch information
muglug committed Dec 1, 2019
1 parent e40aaaf commit ef829002bfef1a83d18376591e288ea7e023579d
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/Psalm/Internal/Analyzer/Statements/Expression/AssignmentAnalyzer.php
@@ -177,7 +177,7 @@ public static function analyze(
&& $type_location
&& isset($context->vars_in_scope[$var_comment->var_id])
&& $context->vars_in_scope[$var_comment->var_id]->getId() === $var_comment_type->getId()
&& !$comment_type->isMixed()
&& !$var_comment_type->isMixed()
) {
$project_analyzer = $statements_analyzer->getProjectAnalyzer();
@@ -187,7 +187,7 @@ public static function analyze(
FileManipulationBuffer::addVarAnnotationToRemove($type_location);
} elseif (IssueBuffer::accepts(
new UnnecessaryVarAnnotation(
'The @var ' . $var_comment . ' annotation for '
'The @var ' . $var_comment_type . ' annotation for '
. $var_comment->var_id . ' is unnecessary',
$type_location
)

0 comments on commit ef82900

Please sign in to comment.
You can’t perform that action at this time.