diff --git a/src/Psalm/Internal/Analyzer/Statements/Block/TryAnalyzer.php b/src/Psalm/Internal/Analyzer/Statements/Block/TryAnalyzer.php index 85fea6dd4..3d91a0868 100644 --- a/src/Psalm/Internal/Analyzer/Statements/Block/TryAnalyzer.php +++ b/src/Psalm/Internal/Analyzer/Statements/Block/TryAnalyzer.php @@ -526,7 +526,7 @@ class TryAnalyzer $statements_analyzer->analyze($stmt->finally->stmts, $finally_context); if ($finally_context->has_returned) { - $context->has_returned; + $context->has_returned = true; } /** @var string $var_id */