Skip to content

Commit 4f5fa79

Browse files
authored
Merge pull request #12 from fulll/reduce_deprecated
2 parents f1bdd92 + 2eef7ce commit 4f5fa79

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

Command/ConsumeCommand.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public function __construct(ContainerInterface $container)
2828
/**
2929
* {@inheritdoc}
3030
*/
31-
protected function configure()
31+
protected function configure(): void
3232
{
3333
$this
3434
->setName('rezzza:command_bus:consume')
@@ -45,7 +45,7 @@ protected function configure()
4545
/**
4646
* {@inheritdoc}
4747
*/
48-
protected function execute(InputInterface $input, OutputInterface $output)
48+
protected function execute(InputInterface $input, OutputInterface $output): int
4949
{
5050
$lockKey = $input->getOption('lock');
5151
$commandClass = $input->getArgument('command_class');
@@ -89,5 +89,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
8989

9090
usleep($usleep);
9191
} while ($isLive());
92+
93+
return 0;
9294
}
9395
}

DependencyInjection/Compiler/CommandHandlerPass.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class CommandHandlerPass implements CompilerPassInterface
1717
/**
1818
* {@inheritdoc}
1919
*/
20-
public function process(ContainerBuilder $container)
20+
public function process(ContainerBuilder $container): void
2121
{
2222
$services = array();
2323

0 commit comments

Comments
 (0)