Make sure trace_level is always defined
This commit is contained in:
parent
5196254801
commit
b80e9b8474
@ -98,8 +98,8 @@ class HttpCache implements HttpKernelInterface, TerminableInterface
|
||||
'trace_header' => 'X-Symfony-Cache',
|
||||
], $options);
|
||||
|
||||
if (!isset($options['trace_level']) && $this->options['debug']) {
|
||||
$this->options['trace_level'] = 'full';
|
||||
if (!isset($options['trace_level'])) {
|
||||
$this->options['trace_level'] = $this->options['debug'] ? 'full' : 'none';
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user