Skip to content

Commit bfe136a

Browse files
committed
set default value as a fallback in filter
1 parent 97863a1 commit bfe136a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

system/Filters/PageCache.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public function __construct(?Cache $config = null)
3939
$config ??= config('Cache');
4040

4141
$this->pageCache = service('responsecache');
42-
$this->cacheStatusCodes = $config->cacheStatusCodes;
42+
$this->cacheStatusCodes = $config->cacheStatusCodes ?? [];
4343
}
4444

4545
/**

0 commit comments

Comments
 (0)