Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit bdb0df9

Browse filesBrowse 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
Copy full SHA for bdb0df9

File tree

1 file changed

+3
-1
lines changed
Filter options

1 file changed

+3
-1
lines changed

‎psalm.xml

Copy file name to clipboardExpand all lines: psalm.xml
+3-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.