Skip to content

Commit fb10eec

Browse files
committed
Fix FrameworkBundle PropertyAccess definition when not in debug
1 parent 5b5aefc commit fb10eec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

DependencyInjection/FrameworkExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1983,7 +1983,7 @@ private function registerCacheConfiguration(array $config, ContainerBuilder $con
19831983

19841984
if (!$container->getParameter('kernel.debug')) {
19851985
$propertyAccessDefinition->setFactory([PropertyAccessor::class, 'createCache']);
1986-
$propertyAccessDefinition->setArguments([null, 0, $version, new Reference('logger', ContainerInterface::IGNORE_ON_INVALID_REFERENCE)]);
1986+
$propertyAccessDefinition->setArguments(['', 0, $version, new Reference('logger', ContainerInterface::IGNORE_ON_INVALID_REFERENCE)]);
19871987
$propertyAccessDefinition->addTag('cache.pool', ['clearer' => 'cache.system_clearer']);
19881988
$propertyAccessDefinition->addTag('monolog.logger', ['channel' => 'cache']);
19891989
} else {

0 commit comments

Comments
 (0)