diff --git a/DependencyInjection/Compiler/LoggerChannelPass.php b/DependencyInjection/Compiler/LoggerChannelPass.php index ce952eba..9f1aba1f 100644 --- a/DependencyInjection/Compiler/LoggerChannelPass.php +++ b/DependencyInjection/Compiler/LoggerChannelPass.php @@ -125,7 +125,7 @@ private function changeReference(Reference $reference, $serviceId) { if (method_exists($reference, 'isStrict')) { // Stay compatible with Symfony 2 - return new Reference($serviceId, $reference->getInvalidBehavior(), $reference->isStrict()); + return new Reference($serviceId, $reference->getInvalidBehavior(), $reference->isStrict(false)); } return new Reference($serviceId, $reference->getInvalidBehavior());