analyse/laravel/no-env-outside-config
In the analyse-recommended preset and every stricter one. Report only. Runs when laravel is installed. Upstream gates: noEnvCallsOutsideOfConfig (default true).
Configuration
[analyse.rules]
"laravel/no-env-outside-config" = "on"
To skip it in some files or lines, add an ignore comment.
Replaces
NoEnvCallsOutsideOfConfigRule(phpstan-classes)larastan.noEnvCallsOutsideOfConfig(larastan)