From 69488c46469e530949795d13f59b31b2acef55c1 Mon Sep 17 00:00:00 2001 From: Lucas Foussier Date: Sat, 20 Jan 2024 18:44:59 +0100 Subject: [PATCH] Fixing depreceated return of methods LoadAnnotationService::process and NzoUrIEncryptorBundle::build --- DependencyInjection/Compiler/LoadAnnotationService.php | 2 +- NzoUrlEncryptorBundle.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/DependencyInjection/Compiler/LoadAnnotationService.php b/DependencyInjection/Compiler/LoadAnnotationService.php index 00f578b..9136f94 100644 --- a/DependencyInjection/Compiler/LoadAnnotationService.php +++ b/DependencyInjection/Compiler/LoadAnnotationService.php @@ -17,7 +17,7 @@ class LoadAnnotationService implements CompilerPassInterface { - public function process(ContainerBuilder $container) + public function process(ContainerBuilder $container): void { $container ->register('nzo.annotation_resolver', AnnotationResolver::class) diff --git a/NzoUrlEncryptorBundle.php b/NzoUrlEncryptorBundle.php index 438367e..5454934 100644 --- a/NzoUrlEncryptorBundle.php +++ b/NzoUrlEncryptorBundle.php @@ -24,7 +24,7 @@ public function getContainerExtension(): ?ExtensionInterface return new NzoEncryptorExtension(); } - public function build(ContainerBuilder $container) + public function build(ContainerBuilder $container): void { $container->addCompilerPass(new LoadAnnotationService()); }