diff --git a/phpBB/phpbb/composer/extension_manager.php b/phpBB/phpbb/composer/extension_manager.php index 7e148e0d54..a1ceb06d91 100644 --- a/phpBB/phpbb/composer/extension_manager.php +++ b/phpBB/phpbb/composer/extension_manager.php @@ -98,7 +98,7 @@ class extension_manager extends manager if ($this->enable_on_install) { $io->writeError([['ENABLING_EXTENSIONS', [], 1]], true); - foreach ($packages as $package) + foreach ($packages as $package => $version) { try { @@ -123,7 +123,7 @@ class extension_manager extends manager { $io->writeError([['DISABLING_EXTENSIONS', [], 1]], true); $this->enabled_extensions = []; - foreach ($packages as $package) + foreach ($packages as $package => $version) { try { @@ -193,7 +193,7 @@ class extension_manager extends manager $io->writeError([['DISABLING_EXTENSIONS', [], 1]], true); } - foreach ($packages as $package) + foreach ($packages as $package => $version) { try { diff --git a/phpBB/phpbb/composer/manager.php b/phpBB/phpbb/composer/manager.php index fbd14c5783..c9d917e5c9 100644 --- a/phpBB/phpbb/composer/manager.php +++ b/phpBB/phpbb/composer/manager.php @@ -291,7 +291,7 @@ class manager implements manager_interface return $this->installer->check_requirements(); } - protected function normalize_version($packages) + protected function normalize_version(array $packages) { $normalized_packages = [];