Skip to content

Commit

Permalink
filter request meta bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
aminsamadzadeh committed Jul 31, 2020
1 parent d94c5fd commit 770af21
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/Filterable.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,13 @@ protected function getDefaultMeta()

protected function getRequestMeta()
{
return $this->request['filter-meta'] ?? [];
if(
isset($this->request['filter-meta'])
and is_array($this->request['filter-meta'])
)
return $this->request['filter-meta'];

return [];
}

protected function filterableFromArray()
Expand Down

0 comments on commit 770af21

Please sign in to comment.