mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-14 09:02:12 +00:00
Make commands' execute() always return int
This commit is contained in:
parent
aa1d930bfa
commit
11d9f9aba4
3 changed files with 5 additions and 5 deletions
|
|
@ -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');
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue