Skip to content

Commit d911189

Browse files
Use a strict check for the count in values_in_array
1 parent d74fd28 commit d911189

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/array_functions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ function values_in_array($needles, array $haystack)
6060
$needles = [$needles];
6161
}
6262

63-
return count(array_intersect($needles, $haystack)) == count($needles);
63+
return count(array_intersect($needles, $haystack)) === count($needles);
6464
}
6565

6666
/**

0 commit comments

Comments
 (0)