Skip to content

Commit ddaf1be

Browse files
committed
minor symfony#32391 [FrameworkBundle] pass default cache lifetime as an integer (xabbuh)
This PR was merged into the 3.4 branch. Discussion ---------- [FrameworkBundle] pass default cache lifetime as an integer | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | | License | MIT | Doc PR | Commits ------- 416502d pass default cache lifetime as an integer
2 parents 7f43681 + 416502d commit ddaf1be

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)