Skip to content

Commit 5cfbee5

Browse files
authored
Fix php error
1 parent 7b737f7 commit 5cfbee5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/DependencyInjection/FOSHttpCacheExtension.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public function load(array $configs, ContainerBuilder $container): void
4848

4949
if ($config['debug']['enabled'] || (!empty($config['cache_control']))) {
5050
$debugHeader = $config['debug']['enabled'] ? $config['debug']['header'] : false;
51-
$ttlHeader = $config['cache_control']['ttl_header'];
51+
$ttlHeader = $config['cache_control']['ttl_header'] ?? null;
5252
$container->setParameter('fos_http_cache.debug_header', $debugHeader);
5353
$container->setParameter('fos_http_cache.ttl_header', $ttlHeader);
5454
$loader->load('cache_control_listener.xml');

0 commit comments

Comments
 (0)