Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
Call to in_array are not using strict mode, When comparing certain values it possible to get a false positive.
http://php.net/manual/en/function.in-array.php
Proposed resolution
Review in_array() usage and add the strict (third) argument as needed.
Comments
Comment #2
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commentedAll in_array() usages are checking for a value in an array of strings and the strict parameter is not needed.