Problem/Motivation

Call to in_array are not using strict mode, When comparing certain values it possible to get a false positive.

https://3v4l.org/oPqTY

http://php.net/manual/en/function.in-array.php

Proposed resolution

Review in_array() usage and add the strict (third) argument as needed.

Comments

jrockowitz created an issue. See original summary.

jrockowitz’s picture

Status: Active » Closed (won't fix)

All in_array() usages are checking for a value in an array of strings and the strict parameter is not needed.