From 006088d5784d80a53ba8f9d4067f47f0bcf334d7 Mon Sep 17 00:00:00 2001 From: orklah Date: Tue, 3 Aug 2021 18:24:53 +0200 Subject: [PATCH] don't flag UnusedForeachValue as fixable --- src/Psalm/Internal/Analyzer/StatementsAnalyzer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Psalm/Internal/Analyzer/StatementsAnalyzer.php b/src/Psalm/Internal/Analyzer/StatementsAnalyzer.php index 034ee5bae..a21f28896 100644 --- a/src/Psalm/Internal/Analyzer/StatementsAnalyzer.php +++ b/src/Psalm/Internal/Analyzer/StatementsAnalyzer.php @@ -822,7 +822,7 @@ class StatementsAnalyzer extends SourceAnalyzer if (IssueBuffer::accepts( $issue, $this->getSuppressedIssues(), - true + $issue instanceof UnusedVariable )) { // fall through }