[wp-trac] [WordPress Trac] #61175: Integrate PHPStan into the core development workflow
WordPress Trac
noreply at wordpress.org
Wed Feb 18 18:14:15 UTC 2026
#61175: Integrate PHPStan into the core development workflow
-------------------------------------------------+-------------------------
Reporter: westonruter | Owner:
| westonruter
Type: enhancement | Status: accepted
Priority: normal | Milestone: 7.0
Component: General | Version:
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests dev- | Focuses:
feedback |
-------------------------------------------------+-------------------------
Comment (by westonruter):
The [https://github.com/WordPress/wordpress-develop/pull/10419 PR for
level 0] is ready for review, and I believe ready for commit.
PHPStan is integrated into `grunt precommit:php` to run before PHPUnit.
PHPStan is also integrated as a new GitHub workflow so that any PHPStan
issues will be reported as annotations on a pull request. These
annotations are shown as //warnings// and not errors, meaning type issues
(or false positives) won't perhaps overly alarm contributors.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/61175#comment:84>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list