Skip to content

Commit 69e1127

Browse files
minor #51268 Psalm: Suppress UnusedConstructor errors (derrabus)
This PR was merged into the 5.4 branch. Discussion ---------- Psalm: Suppress UnusedConstructor errors | Q | A | ------------- | --- | Branch? | 5.4 | Bug fix? | no | New feature? | no | Deprecations? | no | Tickets | N/A | License | MIT | Doc PR | N/A The CI on our pull requests keeps failing because of `UnusedConstructor` Psalm errors. I believe that this class of errors is not relevant for this codebase. Commits ------- 74401f1 Psalm: Suppress UnusedConstructor errors
2 parents b39fcef + 74401f1 commit 69e1127

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy