diff --git a/src/Psalm/Internal/Analyzer/Statements/Block/DoAnalyzer.php b/src/Psalm/Internal/Analyzer/Statements/Block/DoAnalyzer.php index b09b98978..1902c5785 100644 --- a/src/Psalm/Internal/Analyzer/Statements/Block/DoAnalyzer.php +++ b/src/Psalm/Internal/Analyzer/Statements/Block/DoAnalyzer.php @@ -92,7 +92,7 @@ class DoAnalyzer if (LoopAnalyzer::analyze( $statements_analyzer, $stmt->stmts, - WhileAnalyzer::getAndExpressions($stmt->cond), + [$stmt->cond], [], $loop_scope, $inner_loop_context,