app/Http/RedirectIfAuthenticated.php - Middleware return type issue #50369
Unanswered
amrudin-shopcircle
asked this question in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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
../vendor/bin/phpstan analyze --level=max app/Http
.Here is the issue that I got in a console:
` ------ ----------------------------------------------------------------------------------------------------------------------------------
Line Middleware/RedirectIfAuthenticated.php
24 Method App\Http\Middleware\RedirectIfAuthenticated::handle() should return Symfony\Component\HttpFoundation\Response but returns
Illuminate\Http\RedirectResponse|Illuminate\Routing\Redirector.
`
Beta Was this translation helpful? Give feedback.
All reactions