Skip to content

Commit a1a2ac8

Browse files
committed
[Messenger] fixed missing use statement
1 parent 93ca437 commit a1a2ac8

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Command/ConsumeMessagesCommand.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
use Symfony\Component\Console\Input\InputArgument;
2020
use Symfony\Component\Console\Input\InputInterface;
2121
use Symfony\Component\Console\Input\InputOption;
22+
use Symfony\Component\Console\Output\ConsoleOutputInterface;
2223
use Symfony\Component\Console\Output\OutputInterface;
2324
use Symfony\Component\Console\Question\ChoiceQuestion;
2425
use Symfony\Component\Console\Style\SymfonyStyle;
@@ -148,7 +149,7 @@ protected function interact(InputInterface $input, OutputInterface $output)
148149
/**
149150
* {@inheritdoc}
150151
*/
151-
protected function execute(InputInterface $input, OutputInterface $output): void
152+
protected function execute(InputInterface $input, OutputInterface $output)
152153
{
153154
if (false !== strpos($input->getFirstArgument(), ':consume-')) {
154155
$message = 'The use of the "messenger:consume-messages" command is deprecated since version 4.3 and will be removed in 5.0. Use "messenger:consume" instead.';

Command/StopWorkersCommand.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
use Psr\Cache\CacheItemPoolInterface;
1515
use Symfony\Component\Console\Command\Command;
1616
use Symfony\Component\Console\Input\InputInterface;
17+
use Symfony\Component\Console\Output\ConsoleOutputInterface;
1718
use Symfony\Component\Console\Output\OutputInterface;
1819
use Symfony\Component\Console\Style\SymfonyStyle;
1920
use Symfony\Component\Messenger\Worker\StopWhenRestartSignalIsReceived;
@@ -60,7 +61,7 @@ protected function configure(): void
6061
/**
6162
* {@inheritdoc}
6263
*/
63-
protected function execute(InputInterface $input, OutputInterface $output): void
64+
protected function execute(InputInterface $input, OutputInterface $output)
6465
{
6566
$io = new SymfonyStyle($input, $output instanceof ConsoleOutputInterface ? $output->getErrorOutput() : $output);
6667

0 commit comments

Comments
 (0)