[BUGFIX] Only variables should be passed by reference
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Classes / Compatibility / LoadedExtensionsArray.php
index ea74bb1..937f9d1 100644 (file)
@@ -193,7 +193,8 @@ class LoadedExtensionsArray implements \Iterator, \ArrayAccess, \Serializable, \
         * @return void Any returned value is ignored.
         */
        public function rewind() {
-               $this->iteratorPosition = array_shift(array_keys($this->packageManager->getActivePackages()));
+               $keys = array_keys($this->packageManager->getActivePackages());
+               $this->iteratorPosition = array_shift($keys);
        }
 
        /**