Skip to content

Commit a114814

Browse files
authored
Fix bug with searchable key masks
1 parent 477c10b commit a114814

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Repositories/AbstractRepository.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ public function orderBy($column, $direction)
295295
public function getSearchableKeys()
296296
{
297297
return array_values(array_map(function($value, $key) {
298-
return is_array($value) ? $key : $value;
298+
return (is_array($value) || is_numeric($key) === false) ? $key : $value;
299299
}, $this->searchable, array_keys($this->searchable)));
300300
}
301301

0 commit comments

Comments
 (0)