Skip to content

Commit 2cccec7

Browse files
committed
Fixed missing isset in constructor check
1 parent 4dfb301 commit 2cccec7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/CachePlugin.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public function __construct(CacheItemPoolInterface $pool, StreamFactory $streamF
6262
$this->pool = $pool;
6363
$this->streamFactory = $streamFactory;
6464

65-
if (isset($config['respect_cache_headers']) && $config['respect_response_cache_directives']) {
65+
if (isset($config['respect_cache_headers']) && isset($config['respect_response_cache_directives'])) {
6666
throw new \InvalidArgumentException(
6767
'You can\'t provide config option "respect_cache_headers" and "respect_response_cache_directives". '.
6868
'Use "respect_response_cache_directives" instead.'

0 commit comments

Comments
 (0)