Skip to content

Commit

Permalink
Merge pull request #250 from coldic3/fix/facets-resolver-with-no-buckets
Browse files Browse the repository at this point in the history
Fix FacetsResolver with no buckets
  • Loading branch information
GracjanJozefczyk authored Jul 18, 2024
2 parents 14efa04 + 03f19b0 commit 94593df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Api/Resolver/FacetsResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public function resolve(array $data): array
}

return array_filter($adapter->getAggregations(), function ($facet) {
return [] !== $facet['buckets'] ?? [];
return [] !== ($facet['buckets'] ?? []);
});
}
}

0 comments on commit 94593df

Please sign in to comment.