What problem does it solve? PHPStan or Larastan failures block commits and CI, and fixing them by hand means reading cryptic type errors, tracing them to the real source, and re-running the analyzer repeatedly. This Skill automates that loop: it captures the full error list, fixes the root cause in the PHP source, and re-runs the analysis until it reports no errors. ## Core Features & Use Cases - Root-cause fixing: Reads the actual PHP files and their dependencies (models, migrations, requests, services) before editing, fixing types at their definition rather than at every call site. - Pattern library: Maps common errors to correct fixes, including Collection generics, Larastan relation generics (BelongsTo/HasMany), undefined model properties, nullable access, and array shape mismatches. - Strict guardrails: Never suppresses errors with @phpstan-ignore annotations, never adds baseline entries for newly introduced errors, and never weakens types to mixed just to pass. - Use Case: A git commit fails on a phpstan pre-commit hook after merging a branch. Invoke this Skill to read the reported errors, apply minimal type fixes across the affected files, and paste the clean [OK] No errors result as proof. ## Quick Start Ask the assistant to fix the phpstan errors reported by the project's static-analysis command and re-run it until it passes cleanly.