A field manual for autonomous or human agents working in PHP repos using PHPStan. Copy this into your project’s
docs/agents/phpstan.md
and adapt as needed.
- Mission: Keep code safe, boring, and predictable by enforcing static analysis with PHPStan at a consistent level across services.
- Scope: All PHP source, tests, and frameworks (Laravel/Symfony/etc.) with framework-specific add‑ons (e.g., Larastan).