Configures and optimizes PHPStan static analysis for WordPress plugins, themes, and sites to enforce type safety.
This skill enables Claude to configure, run, and resolve errors for PHPStan static analysis within WordPress codebases. It streamlines the setup of WordPress-specific stubs, optimizes configuration files, manages error baselines, and applies accurate PHPDoc types to handle WordPress hooks, REST requests, and database query results without triggering false positives.
Características Principales
013 GitHub stars
02Automates PHPStan configuration (phpstan.neon) and baseline generation for WordPress projects.
03Applies precise WordPress-specific typing for REST Requests, hook callbacks, and database queries.
04Provides step-by-step verification and troubleshooting for complex static analysis errors.
05Integrates WordPress core stubs to eliminate false-positive undefined function errors.
06Handles third-party plugin and theme classes safely using stubs and targeted ignore rules.
Casos de Uso
01Resolving static analysis errors in custom WordPress REST API endpoints and hooks.
02Setting up PHPStan for the first time on a legacy WordPress plugin or theme.
03Managing and gradually reducing a PHPStan baseline in a large WordPress repository.