diff --git a/src/Psalm/Internal/Analyzer/Statements/EchoAnalyzer.php b/src/Psalm/Internal/Analyzer/Statements/EchoAnalyzer.php index a0834bed2..d5120a50b 100644 --- a/src/Psalm/Internal/Analyzer/Statements/EchoAnalyzer.php +++ b/src/Psalm/Internal/Analyzer/Statements/EchoAnalyzer.php @@ -35,7 +35,7 @@ class EchoAnalyzer ExpressionAnalyzer::analyze($statements_analyzer, $expr, $context); $context->inside_call = false; - $expr_type = $statements_analyzer->node_data->getType($expr) ?: Type::getMixed(); + $expr_type = $statements_analyzer->node_data->getType($expr); if ($statements_analyzer->data_flow_graph && $expr_type