Skip to content

Commit

Permalink
Ignore complaints about dead code
Browse files Browse the repository at this point in the history
We've declared types in phpdoc, but they are not enforced by type
declarations, so we are enforcing them with checks. Psalm complains it
is dead code because it assumes the types can be trusted.
  • Loading branch information
greg0ire committed Sep 5, 2024
1 parent 50f9235 commit f7d7c4d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions psalm.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,12 @@
<directory name="vendor" />
</ignoreFiles>
</projectFiles>
<issueHandlers>
<NoValue>
<errorLevel type="suppress">
<file name="lib/Doctrine/Common/Annotations/Annotation/Enum.php" />
<file name="lib/Doctrine/Common/Annotations/Annotation/Target.php" />
</errorLevel>
</NoValue>
</issueHandlers>
</psalm>

0 comments on commit f7d7c4d

Please sign in to comment.