Skip to content

Commit

Permalink
fix(pipes): bug when "resolver" is not set
Browse files Browse the repository at this point in the history
  • Loading branch information
Christophe Badoit committed Mar 14, 2019
1 parent bab8195 commit 8f97f72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Support/Pipe/Eloquent/FilterPipe.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ private function getType(Definition $definition) {

// if we got an array, try to fetch type and resolver Function/FilterInterface
if (is_array($filter)) {
if ($filter['resolver'] instanceof TypedFilterInterface) {
if (isset($filter['resolver']) && $filter['resolver'] instanceof TypedFilterInterface) {
$fieldType = $filter['resolver']->getType();
} else {
$fieldType = array_get($filter, 'type', Type::json());
Expand Down

0 comments on commit 8f97f72

Please sign in to comment.