Skip to content

Commit f7d7c4d

Browse files
committed
Ignore complaints about dead code
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.
1 parent 50f9235 commit f7d7c4d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

psalm.xml

+8
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,12 @@
1515
<directory name="vendor" />
1616
</ignoreFiles>
1717
</projectFiles>
18+
<issueHandlers>
19+
<NoValue>
20+
<errorLevel type="suppress">
21+
<file name="lib/Doctrine/Common/Annotations/Annotation/Enum.php" />
22+
<file name="lib/Doctrine/Common/Annotations/Annotation/Target.php" />
23+
</errorLevel>
24+
</NoValue>
25+
</issueHandlers>
1826
</psalm>

0 commit comments

Comments
 (0)