[wp-trac] [WordPress Trac] #64238: PHPStan code quality improvements for 7.0

WordPress Trac noreply at wordpress.org
Thu Nov 13 21:55:23 UTC 2025


#64238: PHPStan code quality improvements for 7.0
--------------------------------------+-------------------------------
 Reporter:  SergeyBiryukov            |       Owner:  (none)
     Type:  task (blessed)            |      Status:  new
 Priority:  normal                    |   Milestone:  7.0
Component:  General                   |     Version:
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:  coding-standards
--------------------------------------+-------------------------------

Comment (by SergeyBiryukov):

 In [changeset:"61243" 61243]:
 {{{
 #!CommitTicketReference repository="" revision="61243"
 Coding Standards: Remove redundant check in `wpdb::set_sql_mode()`.

 This commit removes an unnecessary `empty( $modes_str )` check, as the
 previous code block already checks the same value and returns early.

 Follow-up to [30587], [56475].

 Props justlevine.
 See #64238.
 }}}

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


More information about the wp-trac mailing list