We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2a221f6 + 0ae1b31 commit 96a7133Copy full SHA for 96a7133
src/Psalm/Internal/Analyzer/StatementsAnalyzer.php
@@ -496,6 +496,7 @@ private static function analyzeStatement(
496
&& !($stmt instanceof PhpParser\Node\Stmt\Interface_)
497
&& !($stmt instanceof PhpParser\Node\Stmt\Trait_)
498
&& !($stmt instanceof PhpParser\Node\Stmt\HaltCompiler)
499
+ && !($stmt instanceof PhpParser\Node\Stmt\Declare_)
500
) {
501
if ($codebase->find_unused_variables) {
502
IssueBuffer::maybeAdd(
0 commit comments