Closed InsiteFX closed 1 year ago
If you think this should be fixed, why don't you send a PR? See https://github.com/codeigniter4/CodeIgniter4/blob/develop/contributing/pull_request.md
@kenjis Can the Codeigniter::run() method really throw RedirectExceptions?
This exception is caught in the catch
block, so I think the @throws RedirectException
docblock is misleading. Or am I missing something?
@InsiteFX If you report an issue, please write the file path.
PhpStorm says "Exception 'RedirectException' is never thrown in the function".
@iRedds It seems you are correct. The @throws RedirectException
should be removed.
PHP Version
8.2
CodeIgniter4 Version
4.3.3 updated today
CodeIgniter4 Installation Method
Manual (zip or tar.gz)
Which operating systems have you tested for this bug?
Windows
Which server did you use?
apache
Database
MariaDB 10.4.28
What happened?
phpStorm throwing Warnings on these 2 lines now.
Line #16 - Can be replaced with 'const' syntax
// Path to the front controller (this file) define('FCPATH', )DIR . DIRECTORY_SEPARATOR;
Line #67 - Unhandled \CodeIgniter\Router\Exceptions\RedirectException $app->run();
Steps to Reproduce
Open in phpStorm Top right Warning sign.
Expected Output
No Warnings.
Anything else?
No response