Skip to content

Commit 6e733b0

Browse files
committed
refactor: do not return void return method
1 parent ca73c0f commit 6e733b0

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

system/CodeIgniter.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,9 @@ public function run(?RouteCollectionInterface $routes = null, bool $returnRespon
319319
if ($this->request instanceof IncomingRequest && strtolower($this->request->getMethod()) === 'cli') {
320320
$this->response->setStatusCode(405)->setBody('Method Not Allowed');
321321

322-
return $this->sendResponse();
322+
$this->sendResponse();
323+
324+
return;
323325
}
324326

325327
Events::trigger('pre_system');

0 commit comments

Comments
 (0)