diff --git a/src/Util/StaticRectorStrings.php b/src/Util/StaticRectorStrings.php index 049d71b1057..ca15ee769a1 100644 --- a/src/Util/StaticRectorStrings.php +++ b/src/Util/StaticRectorStrings.php @@ -37,8 +37,9 @@ public static function camelCaseToUnderscore(string $input): string */ public static function isInArrayInsensitive(string $checkedItem, array $array): bool { + $checkedItem = strtolower($checkedItem); foreach ($array as $singleArray) { - if (strtolower($singleArray) === strtolower($checkedItem)) { + if (strtolower($singleArray) === $checkedItem) { return true; } }