phpstan-fixer

Installation
SKILL.md

PHPStan Error Fixer

Fix PHPStan static analysis errors through proper type annotations, PHPDocs, and code improvements. This skill teaches agents how to resolve errors without suppressing them, respecting the project's configured strictness level.

Core Principles

  1. Never suppress errors as first resort — Fix the root cause with proper types and annotations
  2. Respect user configuration — Never modify phpstan.neon settings (level, paths, parameters)
  3. No silent ignoring — Never add ignoreErrors to config without explicit user approval
  4. Context-aware fixes — Understand the project type (Laravel, Symfony, vanilla PHP) before proposing solutions
  5. Ask before ignoring — If a legitimate ignore is needed, explain why and get user approval first
  6. Don't fix third-party code — Never modify files in vendor/. Use stub files instead to override wrong types
Related skills
Installs
59
GitHub Stars
8
First Seen
Feb 23, 2026