diff --git a/src/Aggregation/Bucketing/DateHistogramAggregation.php b/src/Aggregation/Bucketing/DateHistogramAggregation.php index 41e53864..58abbc05 100644 --- a/src/Aggregation/Bucketing/DateHistogramAggregation.php +++ b/src/Aggregation/Bucketing/DateHistogramAggregation.php @@ -80,7 +80,6 @@ public function getArray() 'field' => $this->getField(), 'interval' => $this->getInterval(), ]; - $out = $this->processArray($out); return $out; } diff --git a/src/Aggregation/Metric/TopHitsAggregation.php b/src/Aggregation/Metric/TopHitsAggregation.php index b8dab965..52933ab7 100644 --- a/src/Aggregation/Metric/TopHitsAggregation.php +++ b/src/Aggregation/Metric/TopHitsAggregation.php @@ -139,8 +139,6 @@ function ($val) { } ); - $output = $this->processArray($output); - return empty($output) ? new \stdClass() : $output; } }