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

WordPress Trac noreply at wordpress.org
Thu Jun 5 10:59:46 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:"60282" 60282]:
 {{{
 #!CommitTicketReference repository="" revision="60282"
 Coding Standards: Remove redundant `! empty()` check in
 `is_object_in_term()`.

 If `$object_terms` is empty, the immediately preceding code block causes
 the function to return early.

 Follow-up to [8131], [10159].

 Props justlevine.
 See #63268.
 }}}

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


More information about the wp-trac mailing list