Skip to content

Commit

Permalink
fix instanceof assign
Browse files Browse the repository at this point in the history
  • Loading branch information
samsonasik committed Sep 26, 2023
1 parent c91a1fd commit 7fc6c79
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion system/CodeIgniter.php
Original file line number Diff line number Diff line change
Expand Up @@ -706,7 +706,8 @@ protected function forceSecureAccess($duration = 31_536_000)
*/
public function displayCache(Cache $config)
{
if (($cachedResponse = $this->pageCache->get($this->request, $this->response)) instanceof ResponseInterface) {
$cachedResponse = $this->pageCache->get($this->request, $this->response);
if ($cachedResponse instanceof ResponseInterface) {
$this->response = $cachedResponse;

$this->totalTime = $this->benchmark->getElapsedTime('total_execution');
Expand Down

0 comments on commit 7fc6c79

Please sign in to comment.