Skip to content

Commit c836db8

Browse files
minor #44835 Suppress psalm error for UndefinedDocblockClass for PHP 8.1 classes (ogizanagi)
This PR was merged into the 4.4 branch. Discussion ---------- Suppress psalm error for UndefinedDocblockClass for PHP 8.1 classes | Q | A | ------------- | --- | Branch? | 4.4 <!-- see below --> | Bug fix? | no | New feature? | no <!-- please update src/**/CHANGELOG.md files --> | Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files --> | Tickets | #44831 (comment) <!-- prefix each issue number with "Fix #", no need to create an issue if none exist, explain below instead --> | License | MIT | Doc PR | N/A Same as #43050 for inlined docblock comments (mainly `class-string<FQCN>`) Commits ------- dbc3eea Suppress psalm error for UndefinedDocblockClass for PHP 8.1 classes
2 parents c3eece2 + dbc3eea commit c836db8

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

psalm.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,13 @@
2727
<referencedClass name="UnitEnum"/>
2828
</errorLevel>
2929
</UndefinedClass>
30+
<UndefinedDocblockClass>
31+
<errorLevel type="suppress">
32+
<!-- These classes have been added in PHP 8.1 -->
33+
<referencedClass name="BackedEnum"/>
34+
<referencedClass name="ReflectionIntersectionType"/>
35+
<referencedClass name="UnitEnum"/>
36+
</errorLevel>
37+
</UndefinedDocblockClass>
3038
</issueHandlers>
3139
</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