Skip to content

Commit 20a93c6

Browse files
committed
Fix PHPStan error
1 parent b23f435 commit 20a93c6

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/Prometheus/Storage/APCng.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -438,11 +438,10 @@ private function buildPermutationTree(array $labelValues): \Generator /** @phpst
438438
if (count($labelValues) > 0) {
439439
$lastIndex = array_key_last($labelValues);
440440
$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-
}
441+
442+
foreach ($this->buildPermutationTree($labelValues) as $prefix) {
443+
foreach ($currentValue as $value) {
444+
yield $prefix + [$lastIndex => $value];
446445
}
447446
}
448447
} else {

0 commit comments

Comments
 (0)