-
Notifications
You must be signed in to change notification settings - Fork 27
Description
Is your enhancement related to a problem? Please describe.
This plugin currently lacks static analysis tooling. P
HPStan can catch type errors, undefined variables, and other bugs before runtime—improving code quality and reducing debugging time.
This should include:
- PHPStan configuration file (phpstan.neon) with WordPress stubs
- Baseline file to allow incremental adoption without blocking on existing issues
- GitHub Action to run PHPStan on PRs
- Composer scripts for local analysis (composer phpstan)
- README documentation on running analysis locally and understanding output
We should follow how he wp-framework and wp-scaffold are using this tool
Designs
No response
Describe alternatives you've considered
- Psalm (similar tool, but PHPStan has better WordPress ecosystem support via szepeviktor/phpstan-wordpress)
- Running analysis only in CI vs also providing local tooling (both would be ideal)
- Strict vs relaxed rule levels (recommend starting at level 5-6 with a baseline, then increasing over time)
Code of Conduct
- I agree to follow this project's Code of Conduct
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels