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>
This commit is contained in:
Snider 2026-04-27 16:09:39 +01:00
parent ccf68c96b0
commit 05d82f24ab

View file

@ -21,12 +21,12 @@
<!-- Laravel plugin (Psalm) flags env() calls outside config/. PHPStan
ignores the equivalent identifier (larastan.noEnvCallsOutsideOfConfig).
Suppress here for parity with PHPStan baseline. -->
<NoEnvOutsideConfig>
Plugin-registered issues use <PluginIssue name="..."> form. -->
<PluginIssue name="NoEnvOutsideConfig">
<errorLevel type="suppress">
<directory name="src" />
</errorLevel>
</NoEnvOutsideConfig>
</PluginIssue>
<!-- Suppress optional dependency errors -->
<UndefinedClass>