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

WordPress Trac noreply at wordpress.org
Sun Nov 23 05:06:36 UTC 2025


#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:"61280" 61280]:
 {{{
 #!CommitTicketReference repository="" revision="61280"
 Docs: Fix phpdoc types for `WP_Speculation_Rules` members.

 What was previously `mixed` is actually a speculation rule which can be
 more accurately be typed as `array<string, mixed>`. Additionally, the
 return value of `jsonSerialize` is fixed to indicate it returns an array
 of lists as opposed an array of associative arrays.

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

 Follow-up to [59837].

 Props justlevine, johnbillion, westonruter.
 See #64238, #63268, #62503.
 }}}

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


More information about the wp-trac mailing list