[wp-trac] [WordPress Trac] #56791: Coding Standards fixes for WP 6.2
WordPress Trac
noreply at wordpress.org
Tue Nov 29 20:58:41 UTC 2022
#56791: Coding Standards fixes for WP 6.2
----------------------------+-------------------------------
Reporter: desrosj | Owner: (none)
Type: task (blessed) | Status: new
Priority: normal | Milestone: 6.2
Component: General | Version:
Severity: normal | Resolution:
Keywords: has-patch | Focuses: coding-standards
----------------------------+-------------------------------
Comment (by SergeyBiryukov):
In [changeset:"54895" 54895]:
{{{
#!CommitTicketReference repository="" revision="54895"
Coding Standards: Always use strict type check for `in_array()`.
This fixes the currently flagged
`WordPress.PHP.StrictInArray.MissingTrueStrict` issues:
* `Not using strict comparison for in_array; supply true for third
argument.`
These all do comparisons with strings, so all the more reason why it is
imperative that a strict comparison is used.
Follow-up to [47550], [47557], [54155], [53480].
Props jrf.
See #56791.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/56791#comment:24>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list