Add support for nested aggregations #574
Annotations
8 errors and 16 warnings
PHP8.4
Process completed with exit code 1.
|
PHP8
Process completed with exit code 1.
|
PHP8.2
The job was canceled because "_8_false" failed.
|
PHP8.2
Process completed with exit code 1.
|
PHP8.3
The job was canceled because "_8_false" failed.
|
PHP8.3
The operation was canceled.
|
PHP8.1
The job was canceled because "_8_false" failed.
|
PHP8.1
The operation was canceled.
|
PHP8.4
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
PHP8.4
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
PHP8.4:
src/Application/Results.php#L37
Escaped Mutant for Mutator "UnwrapArrayMerge":
--- Original
+++ New
@@ @@
$aggregations = [];
foreach ($this->rawResults['aggregations'] as $name => $rawAggregation) {
if (array_key_exists('doc_count', $rawAggregation)) {
- $aggregations = array_merge($aggregations, $this->parseNestedAggregation($rawAggregation));
+ $aggregations = $this->parseNestedAggregation($rawAggregation);
continue;
}
$aggregations[] = new AggregationResult($name, $rawAggregation['buckets'] ?? $rawAggregation);
|
PHP8.4:
src/Application/Results.php#L62
Escaped Mutant for Mutator "UnwrapArrayMerge":
--- Original
+++ New
@@ @@
$aggregations[] = new AggregationResult($nestedAggregationName, $rawNestedAggregation['buckets']);
}
if (is_array($rawNestedAggregation)) {
- $aggregations = array_merge($aggregations, $this->parseNestedAggregation($rawNestedAggregation));
+ $aggregations = $aggregations;
}
}
}
|
PHP8.4:
src/Application/Results.php#L67
Escaped Mutant for Mutator "ArrayOneItem":
--- Original
+++ New
@@ @@
}
}
}
- return $aggregations;
+ return count($aggregations) > 1 ? array_slice($aggregations, 0, 1, true) : $aggregations;
}
}
|
PHP8
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
PHP8
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
PHP8:
src/Application/Results.php#L37
Escaped Mutant for Mutator "UnwrapArrayMerge":
--- Original
+++ New
@@ @@
$aggregations = [];
foreach ($this->rawResults['aggregations'] as $name => $rawAggregation) {
if (array_key_exists('doc_count', $rawAggregation)) {
- $aggregations = array_merge($aggregations, $this->parseNestedAggregation($rawAggregation));
+ $aggregations = $this->parseNestedAggregation($rawAggregation);
continue;
}
$aggregations[] = new AggregationResult($name, $rawAggregation['buckets'] ?? $rawAggregation);
|
PHP8:
src/Application/Results.php#L62
Escaped Mutant for Mutator "UnwrapArrayMerge":
--- Original
+++ New
@@ @@
$aggregations[] = new AggregationResult($nestedAggregationName, $rawNestedAggregation['buckets']);
}
if (is_array($rawNestedAggregation)) {
- $aggregations = array_merge($aggregations, $this->parseNestedAggregation($rawNestedAggregation));
+ $aggregations = $aggregations;
}
}
}
|
PHP8:
src/Application/Results.php#L67
Escaped Mutant for Mutator "ArrayOneItem":
--- Original
+++ New
@@ @@
}
}
}
- return $aggregations;
+ return count($aggregations) > 1 ? array_slice($aggregations, 0, 1, true) : $aggregations;
}
}
|
PHP8.2:
src/Application/Results.php#L37
Escaped Mutant for Mutator "UnwrapArrayMerge":
--- Original
+++ New
@@ @@
$aggregations = [];
foreach ($this->rawResults['aggregations'] as $name => $rawAggregation) {
if (array_key_exists('doc_count', $rawAggregation)) {
- $aggregations = array_merge($aggregations, $this->parseNestedAggregation($rawAggregation));
+ $aggregations = $this->parseNestedAggregation($rawAggregation);
continue;
}
$aggregations[] = new AggregationResult($name, $rawAggregation['buckets'] ?? $rawAggregation);
|
PHP8.2:
src/Application/Results.php#L62
Escaped Mutant for Mutator "UnwrapArrayMerge":
--- Original
+++ New
@@ @@
$aggregations[] = new AggregationResult($nestedAggregationName, $rawNestedAggregation['buckets']);
}
if (is_array($rawNestedAggregation)) {
- $aggregations = array_merge($aggregations, $this->parseNestedAggregation($rawNestedAggregation));
+ $aggregations = $aggregations;
}
}
}
|
PHP8.2:
src/Application/Results.php#L67
Escaped Mutant for Mutator "ArrayOneItem":
--- Original
+++ New
@@ @@
}
}
}
- return $aggregations;
+ return count($aggregations) > 1 ? array_slice($aggregations, 0, 1, true) : $aggregations;
}
}
|
PHP8.3:
src/Application/Results.php#L37
Escaped Mutant for Mutator "UnwrapArrayMerge":
--- Original
+++ New
@@ @@
$aggregations = [];
foreach ($this->rawResults['aggregations'] as $name => $rawAggregation) {
if (array_key_exists('doc_count', $rawAggregation)) {
- $aggregations = array_merge($aggregations, $this->parseNestedAggregation($rawAggregation));
+ $aggregations = $this->parseNestedAggregation($rawAggregation);
continue;
}
$aggregations[] = new AggregationResult($name, $rawAggregation['buckets'] ?? $rawAggregation);
|
PHP8.3:
src/Application/Results.php#L62
Escaped Mutant for Mutator "UnwrapArrayMerge":
--- Original
+++ New
@@ @@
$aggregations[] = new AggregationResult($nestedAggregationName, $rawNestedAggregation['buckets']);
}
if (is_array($rawNestedAggregation)) {
- $aggregations = array_merge($aggregations, $this->parseNestedAggregation($rawNestedAggregation));
+ $aggregations = $aggregations;
}
}
}
|
PHP8.3:
src/Application/Results.php#L67
Escaped Mutant for Mutator "ArrayOneItem":
--- Original
+++ New
@@ @@
}
}
}
- return $aggregations;
+ return count($aggregations) > 1 ? array_slice($aggregations, 0, 1, true) : $aggregations;
}
}
|