I am facing an error on php 8 which is :
"Optional parameter $container declared before required parameter $class is implicitly treated as a required parameter"
code stopped at this function:
`
protected function resolveClass(?ContainerInterface $container = null, string $class)
{
if ($container instanceof ContainerInterface && $container->has($class)) {
return $container->get($class);
}
I am facing an error on php 8 which is : "Optional parameter $container declared before required parameter $class is implicitly treated as a required parameter"
code stopped at this function:
` protected function resolveClass(?ContainerInterface $container = null, string $class) { if ($container instanceof ContainerInterface && $container->has($class)) { return $container->get($class); }
`