Skip to content

Commit

Permalink
Fixes search filter with int
Browse files Browse the repository at this point in the history
Fixes test that fails in 2.6:

jmontoyaa@d33159f

Related/Reported in #1633 #4196 #2190 #2308 #4290
  • Loading branch information
jmontoyaa committed May 26, 2021
1 parent d33159f commit a07532f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Bridge/Doctrine/Common/Filter/SearchFilterTrait.php
Expand Up @@ -136,7 +136,7 @@ protected function getIdFromValue(string $value)
protected function normalizeValues(array $values, string $property): ?array
{
foreach ($values as $key => $value) {
if (!\is_int($key) || !\is_string($value)) {
if (!\is_int($key) || \is_array($value)) {
unset($values[$key]);
}
}
Expand Down

0 comments on commit a07532f

Please sign in to comment.