Skip to content

Commit cf8d4d1

Browse files
authored
Merge pull request #72 from joaorobertopb/patch-1
Replace 'strtolower' for 'mb_strtolower'
2 parents 601039a + dbb5aa3 commit cf8d4d1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Filters/FiltersPartial.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@ public function __invoke(Builder $query, $value, string $property): Builder
1313
if (is_array($value)) {
1414
return $query->where(function (Builder $query) use ($value, $sql) {
1515
foreach ($value as $partialValue) {
16-
$partialValue = strtolower($partialValue);
16+
$partialValue = mb_strtolower($partialValue, 'UTF8');
1717

1818
$query->orWhereRaw($sql, ["%{$partialValue}%"]);
1919
}
2020
});
2121
}
2222

23-
$value = strtolower($value);
23+
$value = mb_strtolower($value, 'UTF8');
2424

2525
return $query->whereRaw($sql, ["%{$value}%"]);
2626
}

0 commit comments

Comments
 (0)