From eec4e4e35d0b48f2d955d73a984c4dddcc1a135b Mon Sep 17 00:00:00 2001 From: Roman Martinuk Date: Tue, 14 Nov 2023 17:43:53 +0300 Subject: [PATCH] fix deprecated for Symfony 6.4 (#719) 2023-11-14T11:38:05+00:00 [info] User Deprecated: Method "Symfony\Component\HttpKernel\Bundle\Bundle::build()" might add "void" as a native return type declaration in the future. Do the same in child class "OldSound\RabbitMqBundle\OldSoundRabbitMqBundle" now to avoid errors or add an explicit @return annotation to suppress this message. 2023-11-14T11:38:05+00:00 [info] User Deprecated: Method "Symfony\Component\HttpKernel\Bundle\Bundle::shutdown()" might add "void" as a native return type declaration in the future. Do the same in child class "OldSound\RabbitMqBundle\OldSoundRabbitMqBundle" now to avoid errors or add an explicit @return annotation to suppress this message. --- OldSoundRabbitMqBundle.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OldSoundRabbitMqBundle.php b/OldSoundRabbitMqBundle.php index d9725163..8ed4223f 100644 --- a/OldSoundRabbitMqBundle.php +++ b/OldSoundRabbitMqBundle.php @@ -9,7 +9,7 @@ class OldSoundRabbitMqBundle extends Bundle { - public function build(ContainerBuilder $container) + public function build(ContainerBuilder $container): void { parent::build($container); @@ -20,7 +20,7 @@ public function build(ContainerBuilder $container) /** * {@inheritDoc} */ - public function shutdown() + public function shutdown(): void { parent::shutdown(); if (!$this->container->hasParameter('old_sound_rabbit_mq.base_amqp')) {