Skip to content

Commit 3ba01fb

Browse files
committed
refactor: use config() instead of new keyword
1 parent b346f89 commit 3ba01fb

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
@@ -351,7 +351,7 @@ public function run(?RouteCollectionInterface $routes = null, bool $returnRespon
351351

352352
// Check for a cached page. Execution will stop
353353
// if the page has been cached.
354-
$cacheConfig = new Cache();
354+
$cacheConfig = config(Cache::class);
355355
$response = $this->displayCache($cacheConfig);
356356
if ($response instanceof ResponseInterface) {
357357
if ($returnResponse) {

0 commit comments

Comments
 (0)