What problem does it solve?
This Skill streamlines the process of configuring, running, and resolving errors from PHPStan static analysis within WordPress projects, ensuring code quality and catching potential bugs before runtime.
Core Features & Use Cases
- Configuration: Assists in setting up
phpstan.neon files, including paths, exclusions, and WordPress-specific settings.
- Error Resolution: Guides users on fixing PHPStan errors by leveraging WordPress-specific PHPDoc annotations and handling third-party plugin compatibility.
- Baseline Management: Facilitates the generation and updating of
phpstan-baseline.neon files.
- Use Case: You've just installed PHPStan in your WordPress plugin and are facing hundreds of errors. This Skill will help you configure PHPStan correctly, understand the errors related to WordPress functions, and apply the right annotations or ignore patterns to resolve them efficiently.
Quick Start
Use the wp-phpstan skill to inspect the current PHPStan setup in the project.