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

WordPress Trac noreply at wordpress.org
Sun Jun 15 05:16:17 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:"60310" 60310]:
 {{{
 #!CommitTicketReference repository="" revision="60310"
 Coding Standards: Remove extra check in
 `wp_authenticate_application_password()`.

 This commit removes an unnecessary `is_wp_error()` check, as the
 `WP_Error` instance is created earlier in the method, and the only
 mutability is whether the instance actually `::has_errors()`.

 Follow-up to [49109].

 Props justlevine.
 See #63268.
 }}}

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


More information about the wp-trac mailing list