From 034eea26392aadcf5fdfd7452d1efdb136b0eff6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Tamarelle?= Date: Mon, 29 Nov 2021 17:01:03 +0100 Subject: [PATCH] Add type on `getContainerExtension` for future compat User Deprecated: Method "Symfony\Component\HttpKernel\Bundle\Bundle::getContainerExtension()" might add "?ExtensionInterface" as a native return type declaration in the future. Do the same in child class "Overblog\GraphQLBundle\OverblogGraphQLBundle" now to avoid errors or add an explicit @return annotation to suppress this message. --- src/OverblogGraphQLBundle.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/OverblogGraphQLBundle.php b/src/OverblogGraphQLBundle.php index 3850ca908..80be31365 100644 --- a/src/OverblogGraphQLBundle.php +++ b/src/OverblogGraphQLBundle.php @@ -52,7 +52,7 @@ public function build(ContainerBuilder $container): void $container->addCompilerPass(new ResolverTaggedServiceMappingPass(), PassConfig::TYPE_BEFORE_REMOVING); } - public function getContainerExtension() + public function getContainerExtension(): ?ExtensionInterface { if (!$this->extension instanceof ExtensionInterface) { $this->extension = new OverblogGraphQLExtension();