Skip to content
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

Error encountered when creating new plugin #297

Closed
alexandrubau opened this issue Feb 26, 2020 · 2 comments
Closed

Error encountered when creating new plugin #297

alexandrubau opened this issue Feb 26, 2020 · 2 comments
Labels

Comments

@alexandrubau
Copy link

alexandrubau commented Feb 26, 2020

Upon trying to create a new plugin using the steps from here, I encounter the following error:

PHP Fatal error:  Declaration of Symfony\Component\HttpKernel\Bundle\Bundle::boot() must be compatible with EightPoints\Bundle\GuzzleBundle\PluginInterface::boot(): void in /var/www/html/src/Service/Api/Plugin/AuthorizationPlugin.php on line 37

and

PHP Fatal error:  Declaration of Symfony\Component\HttpKernel\Bundle\Bundle::build(Symfony\Component\DependencyInjection\ContainerBuilder $container) must be compatible with EightPoints\Bundle\GuzzleBundle\PluginInterface::build(Symfony\Component\DependencyInjection\ContainerBuilder $container): void in /var/www/html/src/Service/Api/Plugin/AuthorizationPlugin.php on line 54

This happens because the methods boot() and build() have return type set to void in EightPoints\Bundle\GuzzleBundle\PluginInterface but the Symfony\Component\HttpKernel\Bundle\Bundle class doesn't specify them.

Q A
Symfony version 4.4
Bundle version 8.0
@alexandrubau
Copy link
Author

Problem solved by downgrading Bundle Version from 8.0 to 7.5.

@gregurco
Copy link
Member

@alexandrubau thank's for hint. Now you can use v8.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants