Skip to content

Commit 3fbb812

Browse files
committed
✨ Update empty checks for getFilters()
Signed-off-by: Julio Renzi C. Motol <[email protected]>
1 parent bd716cc commit 3fbb812

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Traits/WithFilters.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ public function getFilter(string $filter)
247247
public function getFilters(): array
248248
{
249249
return collect($this->filters)
250-
->reject(fn ($value) => $value === null || $value === '')
250+
->reject(fn ($value) => blank($value))
251251
->toArray();
252252
}
253253

0 commit comments

Comments
 (0)