Skip to content

Commit

Permalink
Fix [module:uninstall] Deprecated each() function #3908 (#3909)
Browse files Browse the repository at this point in the history
  • Loading branch information
ranqiangjun authored and LOBsTerr committed Jul 12, 2018
1 parent 6264614 commit 2f90c7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Command/Module/UninstallCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
}

$dependencies = [];
while (list($module) = each($moduleList)) {
foreach ($moduleList as $module => $value ) {
foreach (array_keys($moduleData[$module]->required_by) as $dependency) {
if (isset($installedModules[$dependency]) && !isset($moduleList[$dependency]) && (!array_key_exists($dependency, $profiles))) {
$dependencies[] = $dependency;
Expand Down

0 comments on commit 2f90c7e

Please sign in to comment.