[wp-trac] [WordPress Trac] #64238: PHPStan code quality improvements for 7.0

WordPress Trac noreply at wordpress.org
Mon Feb 23 05:33:40 UTC 2026


#64238: PHPStan code quality improvements for 7.0
--------------------------------------+-------------------------------
 Reporter:  SergeyBiryukov            |       Owner:  (none)
     Type:  task (blessed)            |      Status:  new
 Priority:  normal                    |   Milestone:  7.0
Component:  General                   |     Version:
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:  coding-standards
--------------------------------------+-------------------------------

Comment (by westonruter):

 In [changeset:"61716" 61716]:
 {{{
 #!CommitTicketReference repository="" revision="61716"
 Code Quality: Explicitly return `null` when documented instead of `void`.

 This fixes a PHPStan rule level 3 error: `return.empty`.

 Developed in https://github.com/WordPress/wordpress-develop/pull/10995

 Props huzaifaalmesbah, westonruter, shailu25, mukesh27, noruzzaman.
 See #64238.
 }}}

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


More information about the wp-trac mailing list