diff --git a/src/Config.php b/src/Config.php index db40dd7d..58b26bab 100644 --- a/src/Config.php +++ b/src/Config.php @@ -339,7 +339,7 @@ public function getVersionsIterator(): iterable if ([] === $this->_versions) { return new \EmptyIterator(); } - return new \ArrayIterator($this->_versions); + return \SplFixedArray::fromArray($this->_versions, preserveKeys: false); } /**