[wp-trac] [WordPress Trac] #63268: PHPStan code quality improvements for 6.9

WordPress Trac noreply at wordpress.org
Fri Jun 20 17:04:21 UTC 2025


#63268: PHPStan code quality improvements for 6.9
----------------------------+-------------------------------
 Reporter:  justlevine      |       Owner:  SergeyBiryukov
     Type:  task (blessed)  |      Status:  accepted
 Priority:  normal          |   Milestone:  6.9
Component:  General         |     Version:
 Severity:  normal          |  Resolution:
 Keywords:  has-patch       |     Focuses:  coding-standards
----------------------------+-------------------------------

Comment (by SergeyBiryukov):

 In [changeset:"60330" 60330]:
 {{{
 #!CommitTicketReference repository="" revision="60330"
 Docs: Correct parameter and return types for some comment functions.

 This commit corrects some parameter type issues concerning arrays. More
 specifically:

 * `separate_comments()` now correctly indicates that it returns an array
 of `WP_Comment` objects, keyed by their string types.
 * `_close_comments_for_old_posts()` now correctly indicates that it both
 takes and returns an array of `WP_Post` objects.

 Follow-up to [8892], [8897], [8949], [32587], [42876].

 Props justlevine, johnbillion.
 See #63268.
 }}}

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


More information about the wp-trac mailing list