Skip to content

Commit f89f42a

Browse files
committed
fix: CLIRequest in php-cli runs filters
1 parent 03ba268 commit f89f42a

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
@@ -432,7 +432,10 @@ protected function handleRequest(?RouteCollectionInterface $routes, Cache $cache
432432
return $returnResponse ? $possibleResponse : $possibleResponse->pretend($this->useSafeOutput)->send();
433433
}
434434

435-
if ($possibleResponse instanceof IncomingRequest) {
435+
if (
436+
$possibleResponse instanceof IncomingRequest
437+
|| $possibleResponse instanceof CLIRequest
438+
) {
436439
$this->request = $possibleResponse;
437440
}
438441

0 commit comments

Comments
 (0)