app/Http/RedirectIfAuthenticated.php - Middleware return type issue #50369
-
Hi. I had encountered an issue with return types in my default fresh installed Laravel 10.10 application. The issue has occrued during static analysis using PHPStan package while running Here is the issue that I got in a console: ` ------ ---------------------------------------------------------------------------------------------------------------------------------- 24 Method App\Http\Middleware\RedirectIfAuthenticated::handle() should return Symfony\Component\HttpFoundation\Response but returns ` |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hey @amrudin-shopcircle , You need to tell PHPStan that the
|
Beta Was this translation helpful? Give feedback.
Hey @amrudin-shopcircle ,
You need to tell PHPStan that the
handle()
method may return a redirect. Something like...