[wp-trac] [WordPress Trac] #49542: Coding Standards fixes for WP 5.5

WordPress Trac noreply at wordpress.org
Sun Apr 5 03:00:59 UTC 2020


#49542: Coding Standards fixes for WP 5.5
----------------------------+-------------------------------
 Reporter:  SergeyBiryukov  |       Owner:  (none)
     Type:  task (blessed)  |      Status:  new
 Priority:  normal          |   Milestone:  5.5
Component:  General         |     Version:
 Severity:  normal          |  Resolution:
 Keywords:                  |     Focuses:  coding-standards
----------------------------+-------------------------------

Comment (by SergeyBiryukov):

 In [changeset:"47550" 47550]:
 {{{
 #!CommitTicketReference repository="" revision="47550"
 Coding Standards: Use strict type check for `in_array()` and
 `array_search()` where strings are involved.

 This reduces the number of `WordPress.PHP.StrictInArray.MissingTrueStrict`
 issues from 486 to 50.

 Includes minor code layout fixes for better readability.

 See #49542.
 }}}

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


More information about the wp-trac mailing list