Skip to content

Commit 652d162

Browse files
authored
Merge pull request spatie#791 from shaunluedeke/patch-1
Fix for Warning
2 parents 5c6e514 + 1ba81fc commit 652d162

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/QueryBuilderRequest.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,10 +106,14 @@ public function filters(): Collection
106106
/**
107107
* @param $value
108108
*
109-
* @return array|bool
109+
* @return array|bool|null
110110
*/
111111
protected function getFilterValue($value)
112112
{
113+
if (empty($value)) {
114+
return $value;
115+
}
116+
113117
if (is_array($value)) {
114118
return collect($value)->map(function ($valueValue) {
115119
return $this->getFilterValue($valueValue);

0 commit comments

Comments
 (0)