diff --git a/modules/setup/application/views/scripts/index/index.phtml b/modules/setup/application/views/scripts/index/index.phtml index 3a6e17965..b2b3bda50 100644 --- a/modules/setup/application/views/scripts/index/index.phtml +++ b/modules/setup/application/views/scripts/index/index.phtml @@ -6,7 +6,7 @@ $pages = $wizard->getPages(); $finished = isset($success); $configPages = array_slice($pages, 3, count($pages) - 4, true); $currentPos = array_search($wizard->getCurrentPage(), $pages, true); -list($configPagesLeft, $configPagesRight) = array_chunk($configPages, count($configPages) / 2, true); +list($configPagesLeft, $configPagesRight) = array_chunk($configPages, (int)(count($configPages) / 2), true); $visitedPages = array_keys($wizard->getPageData()); $maxProgress = max(array_merge([0], array_keys(array_filter( diff --git a/modules/setup/library/Setup/RequirementSet.php b/modules/setup/library/Setup/RequirementSet.php index 4c5bb121a..672fad454 100644 --- a/modules/setup/library/Setup/RequirementSet.php +++ b/modules/setup/library/Setup/RequirementSet.php @@ -290,7 +290,7 @@ class RequirementSet implements RecursiveIterator */ public function valid(): bool { - return $this->key() !== null; + return key($this->requirements) !== null; } /**