Skip to content

Commit

Permalink
Fixed missing default argument (#3988)
Browse files Browse the repository at this point in the history
  • Loading branch information
DrColossos authored and LOBsTerr committed Nov 29, 2018
1 parent d72f5c0 commit 3051dbb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Command/Cron/ExecuteCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ protected function configure()
->addArgument(
'module',
InputArgument::IS_ARRAY | InputArgument::OPTIONAL,
$this->trans('commands.common.options.module')
$this->trans('commands.common.options.module'),
['all']
)
->setAliases(['croe']);
}
Expand All @@ -79,7 +80,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
return 1;
}

if ($modules === null || in_array('all', $modules)) {
if (in_array('all', $modules)) {
$modules = $this->moduleHandler->getImplementations('cron');
}

Expand Down

0 comments on commit 3051dbb

Please sign in to comment.