Closed victorzhuk closed 2 years ago
Hey, can you please provide more info on how this error is triggered and how the added docblock fixes the issue? I'm not very familiar with Symfony.
class ClockworkBundle extends Bundle
{
- protected function getContainerExtensionClass()
+ protected function getContainerExtensionClass(): string
{
return ClockworkExtension::class;
}
}
You need to add the return type-hint to getContainerExtensionClass
to be compatible with Symfony 6, but for this you need to drop PHP <7 or to do hacky things. I would strongly favor the former option and even drop PHP <7.4, it's not supported since a while (PHP 7 support ended in Jan 2019 !).