Skip to content

Commit

Permalink
Fix UnevaluatedCode false positive at declare(strict_types=1)
Browse files Browse the repository at this point in the history
  • Loading branch information
klimick committed Apr 27, 2023
1 parent 2a221f6 commit 0ae1b31
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Psalm/Internal/Analyzer/StatementsAnalyzer.php
Original file line number Diff line number Diff line change
Expand Up @@ -496,6 +496,7 @@ private static function analyzeStatement(
&& !($stmt instanceof PhpParser\Node\Stmt\Interface_)
&& !($stmt instanceof PhpParser\Node\Stmt\Trait_)
&& !($stmt instanceof PhpParser\Node\Stmt\HaltCompiler)
&& !($stmt instanceof PhpParser\Node\Stmt\Declare_)
) {
if ($codebase->find_unused_variables) {
IssueBuffer::maybeAdd(
Expand Down

0 comments on commit 0ae1b31

Please sign in to comment.