Skip to content

Commit 0a2ecae

Browse files
jschaedlfabpot
authored andcommitted
[PropertyAccess] Deprecate null as allowed value for defaultLifetime argument in createCache method
1 parent 0b75bdb commit 0a2ecae

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
@@ -1865,7 +1865,7 @@ private function registerCacheConfiguration(array $config, ContainerBuilder $con
18651865

18661866
if (!$container->getParameter('kernel.debug')) {
18671867
$propertyAccessDefinition->setFactory([PropertyAccessor::class, 'createCache']);
1868-
$propertyAccessDefinition->setArguments([null, null, $version, new Reference('logger', ContainerInterface::IGNORE_ON_INVALID_REFERENCE)]);
1868+
$propertyAccessDefinition->setArguments([null, 0, $version, new Reference('logger', ContainerInterface::IGNORE_ON_INVALID_REFERENCE)]);
18691869
$propertyAccessDefinition->addTag('cache.pool', ['clearer' => 'cache.system_clearer']);
18701870
$propertyAccessDefinition->addTag('monolog.logger', ['channel' => 'cache']);
18711871
} else {

0 commit comments

Comments
 (0)