Skip to content

Commit

Permalink
Fix php error
Browse files Browse the repository at this point in the history
  • Loading branch information
richardhj authored Jan 9, 2025
1 parent 7b737f7 commit 5cfbee5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DependencyInjection/FOSHttpCacheExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public function load(array $configs, ContainerBuilder $container): void

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

0 comments on commit 5cfbee5

Please sign in to comment.