@@ -642,15 +642,15 @@ |
||
642 | 642 | */ |
643 | 643 | private function compactPairRefs() |
644 | 644 | { |
645 | - // Renumber indices from 0 ascending. |
|
646 | - $this->pairRefs = array_slice($this->pairRefs, 0); |
|
647 | - $this->nextPairIndex = count($this->pairRefs); |
|
645 | + // Renumber indices from 0 ascending. |
|
646 | + $this->pairRefs = array_slice($this->pairRefs, 0); |
|
647 | + $this->nextPairIndex = count($this->pairRefs); |
|
648 | 648 | |
649 | - $updateIndex = function(PairRef $pairRef, int $position): void { |
|
650 | - $pairRef->pairIndex = $position; |
|
651 | - }; |
|
649 | + $updateIndex = function(PairRef $pairRef, int $position): void { |
|
650 | + $pairRef->pairIndex = $position; |
|
651 | + }; |
|
652 | 652 | |
653 | - array_walk($this->pairRefs, $updateIndex); |
|
653 | + array_walk($this->pairRefs, $updateIndex); |
|
654 | 654 | } |
655 | 655 | |
656 | 656 | /** |
@@ -964,7 +964,8 @@ |
||
964 | 964 | * @template-covariant TKey |
965 | 965 | * @template-covariant TValue |
966 | 966 | */ |
967 | -final class PairRef { |
|
967 | +final class PairRef |
|
968 | +{ |
|
968 | 969 | /** |
969 | 970 | * @var int |
970 | 971 | */ |