Skip to content

Commit

Permalink
fix: CLIRequest in php-cli runs filters
Browse files Browse the repository at this point in the history
  • Loading branch information
kenjis committed Apr 20, 2022
1 parent f7e1de7 commit 6054891
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion system/CodeIgniter.php
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,10 @@ protected function handleRequest(?RouteCollectionInterface $routes, Cache $cache
return $returnResponse ? $possibleResponse : $possibleResponse->pretend($this->useSafeOutput)->send();
}

if ($possibleResponse instanceof IncomingRequest) {
if (
$possibleResponse instanceof IncomingRequest
|| $possibleResponse instanceof CLIRequest
) {
$this->request = $possibleResponse;
}
}
Expand Down

0 comments on commit 6054891

Please sign in to comment.