[wp-trac] [WordPress Trac] #52217: Fix code issues identified by PHPStan

WordPress Trac noreply at wordpress.org
Tue Nov 5 23:08:04 UTC 2024


#52217: Fix code issues identified by PHPStan
-------------------------+-------------------------------
 Reporter:  johnbillion  |       Owner:  (none)
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Future Release
Component:  General      |     Version:
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |     Focuses:  coding-standards
-------------------------+-------------------------------

Comment (by SergeyBiryukov):

 In [changeset:"59357" 59357]:
 {{{
 #!CommitTicketReference repository="" revision="59357"
 Coding Standards: Use `WP_User_Query::get_results()` instead of a private
 property.

 This resolves an issue where the private property
 `WP_User_Query::$results` is accessed directly in
 `WP_REST_Users_Controller::get_items()` instead of via the
 `::get_results()` method.

 Follow-up to [38832].

 Props justlevine.
 See #52217.
 }}}

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


More information about the wp-trac mailing list