Skip to content

Commit 2d3bad1

Browse files
committed
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.
1 parent fa0d9db commit 2d3bad1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/OverblogGraphQLBundle.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public function build(ContainerBuilder $container): void
5252
$container->addCompilerPass(new ResolverTaggedServiceMappingPass(), PassConfig::TYPE_BEFORE_REMOVING);
5353
}
5454

55-
public function getContainerExtension()
55+
public function getContainerExtension(): ?ExtensionInterface
5656
{
5757
if (!$this->extension instanceof ExtensionInterface) {
5858
$this->extension = new OverblogGraphQLExtension();

0 commit comments

Comments
 (0)