Make commands' execute() always return int

This commit is contained in:
Kamil Kokot 2021-01-12 22:11:43 +01:00
parent aa1d930bfa
commit 11d9f9aba4
3 changed files with 5 additions and 5 deletions

View file

@ -32,7 +32,7 @@ class CancelUnpaidOrdersCommand extends ContainerAwareCommand
);
}
protected function execute(InputInterface $input, OutputInterface $output)
protected function execute(InputInterface $input, OutputInterface $output): int
{
$expirationTime = $this->getContainer()->getParameter('sylius_order.order_expiration_period');

View file

@ -31,7 +31,7 @@ EOT
;
}
protected function execute(InputInterface $input, OutputInterface $output): ?int
protected function execute(InputInterface $input, OutputInterface $output): int
{
$output->writeln(sprintf(
'Installing Sylius assets for environment <info>%s</info>.',
@ -55,6 +55,6 @@ EOT
$this->runCommands($commands, $output);
return null;
return 0;
}
}

View file

@ -36,7 +36,7 @@ EOT
;
}
protected function execute(InputInterface $input, OutputInterface $output): ?int
protected function execute(InputInterface $input, OutputInterface $output): int
{
/** @var QuestionHelper $questionHelper */
$questionHelper = $this->getHelper('question');
@ -80,6 +80,6 @@ EOT
$this->runCommands($commands, $output);
$outputStyle->newLine(2);
return null;
return 0;
}
}