Skip to content

Commit 62d1cf4

Browse files
Make in_array() calls strict
1 parent 81d7394 commit 62d1cf4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Extensions.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ public static function getClasses(): array
9999
public static function getFilter(string $name): array
100100
{
101101
foreach (self::EXTENSIONS as $extension) {
102-
if (\in_array($name, $extension['filters'])) {
102+
if (\in_array($name, $extension['filters'], true)) {
103103
return [$extension['class_name'], $extension['package']];
104104
}
105105
}
@@ -110,7 +110,7 @@ public static function getFilter(string $name): array
110110
public static function getFunction(string $name): array
111111
{
112112
foreach (self::EXTENSIONS as $extension) {
113-
if (\in_array($name, $extension['functions'])) {
113+
if (\in_array($name, $extension['functions'], true)) {
114114
return [$extension['class_name'], $extension['package']];
115115
}
116116
}
@@ -121,7 +121,7 @@ public static function getFunction(string $name): array
121121
public static function getTag(string $name): array
122122
{
123123
foreach (self::EXTENSIONS as $extension) {
124-
if (\in_array($name, $extension['tags'])) {
124+
if (\in_array($name, $extension['tags'], true)) {
125125
return [$extension['class_name'], $extension['package']];
126126
}
127127
}

0 commit comments

Comments
 (0)