<< All versions

Skill v1.0.0

currentAutomated scan100/100
alizharb/agent-skills/debug-phpstan
──Details
PublishedOctober 3, 2026 at 05:48 PM
Content Hashsha256:854e46218a53aa49...
Git SHA
──Files
Files (1 file, 742 B)
SKILL.md742 Bactive
SKILL.md · 28 lines · 742 B

version: "1.0.0" name: debug-phpstan description: "Use when PHPStan or Larastan reports type, generic, nullability, or framework inference issues." license: MIT metadata: author: Ali Harb


Debug PHPStan

Workflow

  1. Read the exact PHPStan message and line.
  2. Identify whether the issue is a real bug, missing type, generic mismatch, or framework inference gap.
  3. Prefer code-level types, typed collections, return types, and PHPDoc generics over broad ignores.
  4. Use targeted ignores only when framework magic cannot be expressed safely.
  5. Re-run PHPStan after each small fix.

Verification

  • vendor/bin/phpstan analyse passes.

Common Mistakes

  • Adding mixed everywhere.
  • Ignoring real nullable access bugs.
All versions