Zum Inhalt springen
Kitbay
Einreichen

wp-phpstan

GPL-2.0-or-laterAktualisiert am 9. Nov. 20262.352GitHub-SterneEnthält Skripte

A WordPress project skill for PHPStan static analysis in plugins, themes and sites.

Was der Skill vermittelt

A WordPress project skill for PHPStan static analysis in plugins, themes and sites. It shows the agent how to find existing PHPStan setup, load WordPress core stubs, write a sensible phpstan.neon, fix errors with WordPress-specific type annotations rather than suppressing them, deal with classes from third-party plugins, and use a baseline only as a migration aid. It needs a Composer-based PHPStan install and includes a helper script.

Funktionen

  • Set up PHPStan for a WordPress project
  • Load WordPress core stubs
  • Fix type errors with WordPress annotations
  • Manage a PHPStan baseline