From reviewer
Résoudre automatiquement les erreurs PHPStan niveau 9 — boucle jusqu'à zéro erreur
How this skill is triggered — by the user, by Claude, or both
Slash command
/reviewer:phpstanopusThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Résoudre automatiquement les erreurs PHPStan en analysant et corrigeant les problèmes de types. Boucle jusqu'à zéro erreur ou stagnation.
Résoudre automatiquement les erreurs PHPStan en analysant et corrigeant les problèmes de types. Boucle jusqu'à zéro erreur ou stagnation.
IMPORTANT : Exécute ce workflow étape par étape :
PHPSTAN_BIN="./vendor/bin/phpstan"
PHPSTAN_CONFIG="phpstan.neon" # ou phpstan.neon.dist
ERROR_BATCH_SIZE=5
MAX_ITERATIONS=10
Créer les tâches du workflow :
TaskCreate #1: Vérifier environnement PHPStan
TaskCreate #2: Exécuter analyse initiale (--error-format=json)
TaskCreate #3: Grouper erreurs par fichier
TaskCreate #4: Boucle de résolution (max 10 itérations)
TaskCreate #5: Générer rapport final
activeForm (ex: "Vérifiant environnement PHPStan", "Résolvant erreurs")in_progress puis completedvendor/bin/phpstan analyse --error-format=json --level=9
Classifier par priorité :
Pour chaque lot de 5 erreurs :
@param array{key: type} ou @return array<string, mixed>@template et @extends pour collections et repositories?Type ou Type|null@throws toutes les exceptions levéesgrep -rn '@phpstan-ignore' dans les fichiers modifiésgit checkout -- <fichier>), passer à l'erreur suivanteStagnation = ARRÊT avec rapport
details:
total_errors_initial: X
total_errors_final: Y
errors_fixed: Z
success_rate: "X%"
iterations: N
@phpstan-ignore, @phpstan-ignore-line, @phpstan-ignore-next-linenpx claudepluginhub atournayre/claude-personas --plugin reviewerGuides PHPStan error resolution prioritizing refactoring over phpDoc and ignoring, with Nette patterns, baseline management, and type tests. Use before running PHPStan or fixing errors.
Generates PHPStan configs (phpstan.neon, baselines) for PHP 8.4+ projects with levels, paths, strict rules, and DDD/Doctrine support. For new, legacy, or domain-driven apps.
Executes code quality checks in Symfony projects using PHP-CS-Fixer for style, PHPStan for static analysis, and type safety validation. Supports safe architectural changes.