Skip to content

Commit bdb0df9

Browse files
committed
minor #43050 Silence Psalm errors about Enum classes (derrabus)
This PR was merged into the 4.4 branch. Discussion ---------- Silence Psalm errors about Enum classes | Q | A | ------------- | --- | Branch? | 4.4 | Bug fix? | no | New feature? | no | Deprecations? | no | Tickets | N/A | License | MIT | Doc PR | N/A Psalm does not know about `BackedEnum` and `UnitEnum` yet. This PR should remove some distracting noise from PRs that work with PHP's native enum classes. Commits ------- 5ab3dc3 Silence Psalm errors about Enum classes
2 parents 0d35d24 + 5ab3dc3 commit bdb0df9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

psalm.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,10 @@
2121
<issueHandlers>
2222
<UndefinedClass>
2323
<errorLevel type="suppress">
24-
<!-- Class has been added in PHP 8.1 -->
24+
<!-- These classes have been added in PHP 8.1 -->
25+
<referencedClass name="BackedEnum"/>
2526
<referencedClass name="ReflectionIntersectionType"/>
27+
<referencedClass name="UnitEnum"/>
2628
</errorLevel>
2729
</UndefinedClass>
2830
</issueHandlers>

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