From 3051dbb0c9c732657431e35de99344c16562472e Mon Sep 17 00:00:00 2001 From: DrColossos Date: Thu, 29 Nov 2018 11:17:53 +0100 Subject: [PATCH] Fixed missing default argument (#3988) --- src/Command/Cron/ExecuteCommand.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Command/Cron/ExecuteCommand.php b/src/Command/Cron/ExecuteCommand.php index 5fd934463..dd00ac9e3 100644 --- a/src/Command/Cron/ExecuteCommand.php +++ b/src/Command/Cron/ExecuteCommand.php @@ -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']); } @@ -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'); }