Skip to content

Commit 23aa62b

Browse files
committed
fixup! refactor: simplify background commands
Signed-off-by: Daniel Kesselberg <[email protected]>
1 parent e2860c8 commit 23aa62b

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

core/Command/Background/Mode.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,10 @@ protected function configure(): void {
2929
}
3030

3131
protected function execute(InputInterface $input, OutputInterface $output): int {
32-
$mode = match ($input->getArgument('command')) {
32+
/** @var 'background:cron'|'background:ajax'|'background:webcron' $command */
33+
$command = $input->getArgument('command');
34+
35+
$mode = match ($command) {
3336
'background:cron' => 'cron',
3437
'background:ajax' => 'ajax',
3538
'background:webcron' => 'webcron',

0 commit comments

Comments
 (0)