We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b23f435 commit 20a93c6Copy full SHA for 20a93c6
src/Prometheus/Storage/APCng.php
@@ -438,11 +438,10 @@ private function buildPermutationTree(array $labelValues): \Generator /** @phpst
438
if (count($labelValues) > 0) {
439
$lastIndex = array_key_last($labelValues);
440
$currentValue = array_pop($labelValues);
441
- if ($currentValue !== null) {
442
- foreach ($this->buildPermutationTree($labelValues) as $prefix) {
443
- foreach ($currentValue as $value) {
444
- yield $prefix + [$lastIndex => $value];
445
- }
+
+ foreach ($this->buildPermutationTree($labelValues) as $prefix) {
+ foreach ($currentValue as $value) {
+ yield $prefix + [$lastIndex => $value];
446
}
447
448
} else {
0 commit comments