Skip to content

Commit

Permalink
Fix FacetsResolver with no buckets
Browse files Browse the repository at this point in the history
  • Loading branch information
coldic3 committed Jul 9, 2024
1 parent a4dd35a commit 03f19b0
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 03f19b0

Please sign in to comment.