reviewer:phpstan

Resolve PHPStan level 9 errors by applying targeted code fixes iteratively.

Updated Feb 24, 2026
One-click install
npx skills add https://github.com/atournayre/claude-personas --skill reviewer-phpstan
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: reviewer:phpstan
Source: https://github.com/atournayre/claude-personas/tree/main/reviewer/skills/phpstan
Command: npx skills add https://github.com/atournayre/claude-personas --skill reviewer-phpstan

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automatically resolves PHPStan errors, improving code quality and reducing manual debugging time by iteratively fixing type mismatches and other static analysis issues.

Core Features & Use Cases

  • Automated Error Correction: Analyzes PHPStan output and applies code fixes.
  • Iterative Refinement: Loops until zero errors are found or no further progress can be made.
  • Use Case: Integrate this skill into your CI/CD pipeline to automatically catch and fix type-related bugs before they reach production, ensuring a higher standard of code quality.

Quick Start

Use the reviewer:phpstan skill to resolve all PHPStan level 9 errors in the current project.

Frequently Asked Questions about reviewer:phpstan

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automatically fix PHPStan type mismatch errors?

To automatically fix PHPStan type mismatch errors, this skill analyzes code context and applies targeted corrections iteratively. It resolves type mismatches, undefined variables, and incorrect array shapes until PHPStan reports zero errors or stagnation is detected.

How do I resolve PHPStan level 9 errors without adding ignore rules?

To resolve PHPStan level 9 errors without ignore rules, an automated iterative correction process is used. It analyzes the static analysis output and applies code fixes directly, preventing the use of ignore rules by refining the code until errors are cleared.

Can I integrate automated static analysis fixes into a CI/CD pipeline?

Yes, you can integrate automated static analysis fixes into a CI/CD pipeline. This catches and automatically corrects type-related bugs before they reach production, ensuring a higher standard of code quality without manual debugging.

What happens when PHPStan error correction stops making progress?

When PHPStan error correction stops making progress, the iterative process detects stagnation and halts. This prevents infinite loops by stopping the automated refinements when no further type mismatch or array shape corrections can be made.

Does automated PHPStan fixing work on undefined variables and incorrect array shapes?

Yes, automated PHPStan fixing works on undefined variables and incorrect array shapes. It analyzes the code context from the static analysis output to apply targeted fixes for these specific level 9 errors during its iterative refinement loop.