Skip to content

Commit 3a082c1

Browse files
authored
symfony/dependency-injection: 6.3 deprecation notes (#708)
1 parent 036311c commit 3a082c1

15 files changed

+18
-24
lines changed

Command/AnonConsumerCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
class AnonConsumerCommand extends BaseConsumerCommand
66
{
7-
protected function configure()
7+
protected function configure(): void
88
{
99
parent::configure();
1010

Command/BaseConsumerCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function restartConsumer()
3737
// TODO: Implement restarting of consumer
3838
}
3939

40-
protected function configure()
40+
protected function configure(): void
4141
{
4242
parent::configure();
4343

@@ -51,7 +51,7 @@ protected function configure()
5151
;
5252
}
5353

54-
protected function initialize(InputInterface $input, OutputInterface $output)
54+
protected function initialize(InputInterface $input, OutputInterface $output): void
5555
{
5656
$this->amount = (int)$input->getOption('messages');
5757
if (0 > $this->amount) {

Command/BaseRabbitMqCommand.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,7 @@ abstract class BaseRabbitMqCommand extends Command implements ContainerAwareInte
1313
*/
1414
protected $container;
1515

16-
/**
17-
* {@inheritDoc}
18-
*/
19-
public function setContainer(ContainerInterface $container = null)
16+
public function setContainer(ContainerInterface $container = null): void
2017
{
2118
$this->container = $container;
2219
}

Command/BatchConsumerCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function stopConsumer()
3030
}
3131
}
3232

33-
protected function configure()
33+
protected function configure(): void
3434
{
3535
parent::configure();
3636

Command/ConsumerCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
class ConsumerCommand extends BaseConsumerCommand
66
{
7-
protected function configure()
7+
protected function configure(): void
88
{
99
parent::configure();
1010
$this->setDescription('Executes a consumer');

Command/DeleteCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
*/
1414
class DeleteCommand extends ConsumerCommand
1515
{
16-
protected function configure()
16+
protected function configure(): void
1717
{
1818
$this->addArgument('name', InputArgument::REQUIRED, 'Consumer Name')
1919
->setDescription('Delete a consumer\'s queue')
@@ -22,7 +22,7 @@ protected function configure()
2222
$this->setName('rabbitmq:delete');
2323
}
2424

25-
protected function initialize(InputInterface $input, OutputInterface $output)
25+
protected function initialize(InputInterface $input, OutputInterface $output): void
2626
{
2727
// nothing to initialize here as BaseConsumerCommand initializes on option that is not available here
2828
}

Command/DynamicConsumerCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
class DynamicConsumerCommand extends BaseConsumerCommand
1818
{
19-
protected function configure()
19+
protected function configure(): void
2020
{
2121
parent::configure();
2222

Command/MultipleConsumerCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
class MultipleConsumerCommand extends BaseConsumerCommand
99
{
10-
protected function configure()
10+
protected function configure(): void
1111
{
1212
parent::configure();
1313

Command/PurgeConsumerCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
*/
1414
class PurgeConsumerCommand extends ConsumerCommand
1515
{
16-
protected function configure()
16+
protected function configure(): void
1717
{
1818
$this->addArgument('name', InputArgument::REQUIRED, 'Consumer Name')
1919
->setDescription('Purge a consumer\'s queue')
@@ -22,7 +22,7 @@ protected function configure()
2222
$this->setName('rabbitmq:purge');
2323
}
2424

25-
protected function initialize(InputInterface $input, OutputInterface $output)
25+
protected function initialize(InputInterface $input, OutputInterface $output): void
2626
{
2727
// nothing to initialize here as BaseConsumerCommand initializes on option that is not available here
2828
}

Command/RpcServerCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
class RpcServerCommand extends BaseRabbitMqCommand
1111
{
12-
protected function configure()
12+
protected function configure(): void
1313
{
1414
parent::configure();
1515

Command/SetupFabricCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
class SetupFabricCommand extends BaseRabbitMqCommand
1111
{
12-
protected function configure()
12+
protected function configure(): void
1313
{
1414
$this
1515
->setName('rabbitmq:setup-fabric')

Command/StdInProducerCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class StdInProducerCommand extends BaseRabbitMqCommand
1212
public const FORMAT_PHP = 'php';
1313
public const FORMAT_RAW = 'raw';
1414

15-
protected function configure()
15+
protected function configure(): void
1616
{
1717
parent::configure();
1818

DependencyInjection/Compiler/InjectEventDispatcherPass.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,7 @@ class InjectEventDispatcherPass implements CompilerPassInterface
1616
{
1717
public const EVENT_DISPATCHER_SERVICE_ID = 'event_dispatcher';
1818

19-
/**
20-
* @inheritDoc
21-
*/
22-
public function process(ContainerBuilder $container)
19+
public function process(ContainerBuilder $container): void
2320
{
2421
if (!$container->has(self::EVENT_DISPATCHER_SERVICE_ID)) {
2522
return;

DependencyInjection/Compiler/RegisterPartsPass.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
class RegisterPartsPass implements CompilerPassInterface
1010
{
11-
public function process(ContainerBuilder $container)
11+
public function process(ContainerBuilder $container): void
1212
{
1313
$services = $container->findTaggedServiceIds('old_sound_rabbit_mq.base_amqp');
1414
$container->setParameter('old_sound_rabbit_mq.base_amqp', array_keys($services));

DependencyInjection/OldSoundRabbitMqExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class OldSoundRabbitMqExtension extends Extension
3636

3737
private $config = [];
3838

39-
public function load(array $configs, ContainerBuilder $container)
39+
public function load(array $configs, ContainerBuilder $container): void
4040
{
4141
$this->container = $container;
4242

0 commit comments

Comments
 (0)