Skip to content

Commit 416502d

Browse files
committed
pass default cache lifetime as an integer
1 parent 7f43681 commit 416502d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1710,7 +1710,7 @@ private function registerCacheConfiguration(array $config, ContainerBuilder $con
17101710

17111711
if (!$container->getParameter('kernel.debug')) {
17121712
$propertyAccessDefinition->setFactory([PropertyAccessor::class, 'createCache']);
1713-
$propertyAccessDefinition->setArguments([null, null, $version, new Reference('logger', ContainerInterface::IGNORE_ON_INVALID_REFERENCE)]);
1713+
$propertyAccessDefinition->setArguments([null, 0, $version, new Reference('logger', ContainerInterface::IGNORE_ON_INVALID_REFERENCE)]);
17141714
$propertyAccessDefinition->addTag('cache.pool', ['clearer' => 'cache.system_clearer']);
17151715
$propertyAccessDefinition->addTag('monolog.logger', ['channel' => 'cache']);
17161716
} else {

0 commit comments

Comments
 (0)