[wp-trac] [WordPress Trac] #61175: Integrate PHPStan into the core development workflow

WordPress Trac noreply at wordpress.org
Fri Dec 5 15:59:35 UTC 2025


#61175: Integrate PHPStan into the core development workflow
-------------------------------------------------+-------------------------
 Reporter:  westonruter                          |       Owner:  justlevine
     Type:  enhancement                          |      Status:  assigned
 Priority:  normal                               |   Milestone:  Future
                                                 |  Release
Component:  General                              |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch has-unit-tests changes-    |     Focuses:
  requested                                      |
-------------------------------------------------+-------------------------

Comment (by johnbillion):

 [https://github.com/phpstan/phpstan/releases/tag/2.1.6 PHPStan since
 version 2.16] supports inline comments in (among other things) array
 shapes. So we could look at swapping the WordPress-specific syntax for
 that which is understood by PHPStan and Psalm. Would need to check how
 well things like multi-line comments and code blocks are handled.

 Examples here: https://github.com/phpstan/phpdoc-parser/issues/184

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/61175#comment:58>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list