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.
Upon trying to create a new plugin using the steps from here, I encounter the following error:
and
This happens because the methods
boot()
andbuild()
have return type set tovoid
inEightPoints\Bundle\GuzzleBundle\PluginInterface
but theSymfony\Component\HttpKernel\Bundle\Bundle
class doesn't specify them.