Skip to content

Add type on getContainerExtension for future compat #931

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 3, 2021

Conversation

GromNaN
Copy link
Contributor

@GromNaN GromNaN commented Nov 29, 2021

Updating to Symfony 5.4 + PHP 8.0, I get the following warning:

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.
Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Documented? no
Fixed tickets -
License MIT

@mcg-web
Copy link
Contributor

mcg-web commented Dec 3, 2021

hi @GromNaN thank for this PR ! can you propose this change for 0.14 branch please ?

@GromNaN GromNaN changed the base branch from master to 0.14 December 3, 2021 14:51
@GromNaN GromNaN force-pushed the patch-1 branch 2 times, most recently from 626119b to 2d3bad1 Compare December 3, 2021 14:53
@GromNaN
Copy link
Contributor Author

GromNaN commented Dec 3, 2021

Target branch updated.

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.
@mcg-web
Copy link
Contributor

mcg-web commented Dec 3, 2021

Thank you @GromNaN !

@mcg-web mcg-web merged commit 4e677b7 into overblog:0.14 Dec 3, 2021
@GromNaN GromNaN deleted the patch-1 branch December 3, 2021 16:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants