From 3ea308c19f96f6a8b487939dddb4ac29e9aa19c4 Mon Sep 17 00:00:00 2001 From: Bart van Asselt Date: Thu, 25 Apr 2024 13:01:18 +0200 Subject: [PATCH] Write tests for NestedFilteredAggregation --- src/Application/Results.php | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/Application/Results.php b/src/Application/Results.php index 1fea46f..41dc7ba 100644 --- a/src/Application/Results.php +++ b/src/Application/Results.php @@ -7,7 +7,6 @@ use Countable; use function array_key_exists; use function array_merge; -use function is_array; class Results implements Countable { @@ -52,10 +51,6 @@ public function count(): int /** @return AggregationResult[] */ private function parseNestedAggregations(array $rawAggregation): array { - if (!isset($rawAggregation['doc_count'])) { - return []; - } - $aggregations = []; foreach ($rawAggregation as $nestedAggregationName => $rawNestedAggregation) { if (isset($rawNestedAggregation['buckets'])) {