Skip to content

Commit 0652f2a

Browse files
committed
refactor: add @throws RedirectException in Controller::initController()
1 parent cc2dcee commit 0652f2a

File tree

3 files changed

+3
-9
lines changed

3 files changed

+3
-9
lines changed

system/Controller.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515

1616
use CodeIgniter\HTTP\CLIRequest;
1717
use CodeIgniter\HTTP\Exceptions\HTTPException;
18+
use CodeIgniter\HTTP\Exceptions\RedirectException;
1819
use CodeIgniter\HTTP\IncomingRequest;
1920
use CodeIgniter\HTTP\RequestInterface;
2021
use CodeIgniter\HTTP\ResponseInterface;
@@ -78,6 +79,7 @@ class Controller
7879
* @return void
7980
*
8081
* @throws HTTPException
82+
* @throws RedirectException
8183
*/
8284
public function initController(RequestInterface $request, ResponseInterface $response, LoggerInterface $logger)
8385
{
@@ -106,6 +108,7 @@ public function initController(RequestInterface $request, ResponseInterface $res
106108
* @return void
107109
*
108110
* @throws HTTPException
111+
* @throws RedirectException
109112
*/
110113
protected function forceHTTPS(int $duration = 31_536_000)
111114
{

utils/phpstan-baseline/catch.neverThrown.neon

Lines changed: 0 additions & 8 deletions
This file was deleted.

utils/phpstan-baseline/loader.neon

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ includes:
77
- booleanNot.exprNotBoolean.neon
88
- booleanOr.leftNotBoolean.neon
99
- booleanOr.rightNotBoolean.neon
10-
- catch.neverThrown.neon
1110
- class.notFound.neon
1211
- codeigniter.cacheHandlerInstance.neon
1312
- codeigniter.configArgumentInstanceof.neon

0 commit comments

Comments
 (0)