[wp-trac] [WordPress Trac] #51423: Fix function argument type issues reported by PHPStan

WordPress Trac noreply at wordpress.org
Mon Mar 22 22:40:42 UTC 2021


#51423: Fix function argument type issues reported by PHPStan
----------------------------+-------------------------------
 Reporter:  SergeyBiryukov  |       Owner:  hellofromTonya
     Type:  task (blessed)  |      Status:  assigned
 Priority:  normal          |   Milestone:  5.8
Component:  General         |     Version:
 Severity:  normal          |  Resolution:
 Keywords:  php8 has-patch  |     Focuses:  coding-standards
----------------------------+-------------------------------

Comment (by SergeyBiryukov):

 In [changeset:"50563" 50563]:
 {{{
 #!CommitTicketReference repository="" revision="50563"
 Code Modernization: Correct expected data type for `WP_User_Search::$page`
 property.

 This fixes erroneous parentheses placement and applies the type cast to
 the variable it was intended for.

 Follow-up to [3864].

 Props hellofromTonya, jrf, xknown.
 See #51423.
 }}}

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


More information about the wp-trac mailing list