lint/configured/php
A linter is configured
Implements lint/configured for php.
| Severity | warning |
| Tiers | 1, 2 |
| Stacks | php |
| Scope | each |
| Kind | outcome |
| Source | library v0.8.0 |
| Selected by | fleetlint-recommended@v0.8.0 |
Requirement
PHPStan (phpstan.neon.dist) or Psalm (psalm.xml) is configured in the project or a parent directory. Another analyzer is added with accept:.
Why
PHP’s type system is enforced at runtime only; the analyzer is the compile step the language lacks.
Fix
Add phpstan.neon.dist and the packages in require-dev (fleetlint fix --apply does both).
Agent instruction: Add phpstan.neon.dist from the template, require phpstan/phpstan and phpstan/phpstan-strict-rules in require-dev, and fix what it reports or generate a baseline.
fleetlint fix can apply this rule’s fix automatically (2 action(s)).
A finding that names no file points at phpstan.neon.dist.
Sources
- https://csrc.nist.gov/pubs/sp/800/218/final (standard, PW.7.2: Perform the code review and/or code analysis based on the organization’s secure coding standards)
- https://fleetlint.org/baseline/#static-analysis (convention)
- https://phpstan.org/config-reference (spec)
- https://psalm.dev/docs/ (spec)
- https://fleetlint.org/stacks/#php
Generated by fleetlint docs from catalog v0.8.0.