The expression $this->extension; of type Symfony\Component\Depend...xtensionInterface|false adds false to the return on line 29 which is incompatible with the return type declared by the interface Symfony\Component\HttpKe...::getContainerExtension of type Symfony\Component\Depend...ExtensionInterface|null. It seems like you forgot to handle an error condition.
Loading history...
30
}
31
32
1
public function build(ContainerBuilder $container)
33
{
34
1
$annotationReader = new AnnotationReader();
35
1
$autowiringClassMap = new ClassMultiMap($container);
36
37
1
$container->addCompilerPass(
38
1
new ClassMapBuildCompilerPass($autowiringClassMap),
39
1
PassConfig::TYPE_OPTIMIZE
40
);
41
42
1
$container->addCompilerPass(
43
1
new AutowiringCompilerPass($autowiringClassMap, $annotationReader, new PhpParser()),