8000 Psalm: Suppress UnusedConstructor errors · symfony/symfony@74401f1 · GitHub
[go: up one dir, main page]

Skip to content

Commit 74401f1

Browse files
committed
Psalm: Suppress UnusedConstructor errors
1 parent b39fcef commit 74401f1

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

psalm.xml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,14 @@
3636
<referencedClass name="UnitEnum"/>
3737
</errorLevel>
3838
</UndefinedDocblockClass>
39+
<UnusedConstructor>
40+
<errorLevel type="suppress">
41+
<!--
42+
We use private constructors to avoid instantiation.
43+
This kind of error is bogus in most cases.
44+
-->
45+
<directory name="src/Symfony" />
46+
</errorLevel>
47+
</UnusedConstructor>
3948
</issueHandlers>
4049
</psalm>

0 commit comments

Comments
 (0)
0