Skip to content

Commit 05d82f2

Browse files
Sniderclaude
andcommitted
fix(psalm): use <PluginIssue> wrapper for NoEnvOutsideConfig suppression
Bare <NoEnvOutsideConfig> failed Psalm's XML schema validation ("Element ...: This element is not expected."). Plugin-registered issues need the <PluginIssue name="..."> wrapper. Confirmed locally: vendor/bin/psalm --no-progress → 0 exit. Co-Authored-By: Cladius Maximus <claude@anthropic.com>
1 parent ccf68c9 commit 05d82f2

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎psalm.xml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@
2121

2222
<!-- Laravel plugin (Psalm) flags env() calls outside config/. PHPStan
2323
ignores the equivalent identifier (larastan.noEnvCallsOutsideOfConfig).
24-
Suppress here for parity with PHPStan baseline. -->
25-
<NoEnvOutsideConfig>
24+
Plugin-registered issues use <PluginIssue name="..."> form. -->
25+
<PluginIssue name="NoEnvOutsideConfig">
2626
<errorLevel type="suppress">
2727
<directory name="src" />
2828
</errorLevel>
29-
</NoEnvOutsideConfig>
29+
</PluginIssue>
3030

3131
<!-- Suppress optional dependency errors -->
3232
<UndefinedClass>

0 commit comments

Comments
 (0)