Skip to content

Commit 6054891

Browse files
committed
fix: CLIRequest in php-cli runs filters
1 parent f7e1de7 commit 6054891

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

system/CodeIgniter.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,10 @@ protected function handleRequest(?RouteCollectionInterface $routes, Cache $cache
446446
return $returnResponse ? $possibleResponse : $possibleResponse->pretend($this->useSafeOutput)->send();
447447
}
448448

449-
if ($possibleResponse instanceof IncomingRequest) {
449+
if (
450+
$possibleResponse instanceof IncomingRequest
451+
|| $possibleResponse instanceof CLIRequest
452+
) {
450453
$this->request = $possibleResponse;
451454
}
452455
}

0 commit comments

Comments
 (0)