Back to skills

wp-phpstan

testing

Configures and runs PHPStan static analysis in WordPress codebases. Handles phpstan.neon setup, baseline management, WordPress-specific type annotations, and third-party plugin stub integration for pl

Setup & Installation

npx skills add https://github.com/WordPress/wp-phpstan --skill wp-phpstan
or paste the link and ask your coding assistant to install it
https://github.com/WordPress/wp-phpstan
View on GitHub

What This Skill Does

Configures and runs PHPStan static analysis in WordPress codebases. Handles phpstan.neon setup, baseline management, WordPress-specific type annotations, and third-party plugin stub integration for plugins and themes. WordPress adds enough non-standard patterns (hooks, REST requests, direct database queries) that generic PHPStan configs produce hundreds of false positives, and this skill handles the WordPress-specific typing and stub setup needed to get meaningful results.

When to use it

  • Working with wp phpstan functionality
  • Implementing wp phpstan features
  • Debugging wp phpstan related issues