Skip to content

Commit

Permalink
refactor: add @throws RedirectException in Controller::initControll…
Browse files Browse the repository at this point in the history
  • Loading branch information
paulbalandan authored Dec 19, 2024
1 parent 8fa419f commit cc1b8f2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 11 deletions.
5 changes: 3 additions & 2 deletions system/Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

use CodeIgniter\HTTP\CLIRequest;
use CodeIgniter\HTTP\Exceptions\HTTPException;
use CodeIgniter\HTTP\Exceptions\RedirectException;
use CodeIgniter\HTTP\IncomingRequest;
use CodeIgniter\HTTP\RequestInterface;
use CodeIgniter\HTTP\ResponseInterface;
Expand Down Expand Up @@ -77,7 +78,7 @@ class Controller
*
* @return void
*
* @throws HTTPException
* @throws HTTPException|RedirectException
*/
public function initController(RequestInterface $request, ResponseInterface $response, LoggerInterface $logger)
{
Expand Down Expand Up @@ -105,7 +106,7 @@ public function initController(RequestInterface $request, ResponseInterface $res
*
* @return void
*
* @throws HTTPException
* @throws HTTPException|RedirectException
*/
protected function forceHTTPS(int $duration = 31_536_000)
{
Expand Down
8 changes: 0 additions & 8 deletions utils/phpstan-baseline/catch.neverThrown.neon

This file was deleted.

1 change: 0 additions & 1 deletion utils/phpstan-baseline/loader.neon
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ includes:
- booleanNot.exprNotBoolean.neon
- booleanOr.leftNotBoolean.neon
- booleanOr.rightNotBoolean.neon
- catch.neverThrown.neon
- class.notFound.neon
- codeigniter.cacheHandlerInstance.neon
- codeigniter.configArgumentInstanceof.neon
Expand Down

0 comments on commit cc1b8f2

Please sign in to comment.