Compile Error: Declaration of Symfony\Component\DependencyInjection\ContainerBuilder

Viewed 2019

Recently updating my project from Symfony 2.6 to Symfony 3.4. I received the following error while running my app:

(1/1) FatalErrorException Compile Error: Declaration of Symfony\Component\DependencyInjection\ContainerBuilder::set($id, $service) must be compatible with Symfony\Component\DependencyInjection\ContainerInterface::set($id, >$service, $scope = self::SCOPE_CONTAINER)

in ContainerBuilder.php line 51

Please help me resolve the problem?

0 Answers
Related