Skip to content

Commit 1dfa4fe

Browse files
committed
refactor: use config() in display404errors()
1 parent 08493fb commit 1dfa4fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

system/CodeIgniter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -965,7 +965,7 @@ protected function display404errors(PageNotFoundException $e)
965965

966966
unset($override);
967967

968-
$cacheConfig = new Cache();
968+
$cacheConfig = config(Cache::class);
969969
$this->gatherOutput($cacheConfig, $returned);
970970
if ($this->returnResponse) {
971971
return $this->response;

0 commit comments

Comments
 (0)