From 7d88100ad3cc09835745fc65255c46dc992375d7 Mon Sep 17 00:00:00 2001 From: Matthew Brown Date: Wed, 12 Feb 2020 11:34:48 -0500 Subject: [PATCH] Docblock-provided type is not inferred --- .../Analyzer/Statements/Expression/AssignmentAnalyzer.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Psalm/Internal/Analyzer/Statements/Expression/AssignmentAnalyzer.php b/src/Psalm/Internal/Analyzer/Statements/Expression/AssignmentAnalyzer.php index 18f649109..e062c2f00 100644 --- a/src/Psalm/Internal/Analyzer/Statements/Expression/AssignmentAnalyzer.php +++ b/src/Psalm/Internal/Analyzer/Statements/Expression/AssignmentAnalyzer.php @@ -141,7 +141,9 @@ class AssignmentAnalyzer $var_comment_type->check( $statements_analyzer, new CodeLocation($statements_analyzer->getSource(), $assign_var), - $statements_analyzer->getSuppressedIssues() + $statements_analyzer->getSuppressedIssues(), + [], + false ); $type_location = null;