Add type hints for Laravel 10

This commit is contained in:
Shift
2024-02-16 21:13:13 +00:00
parent 8725493fcf
commit 2cb837e4b5
44 changed files with 82 additions and 79 deletions

View File

@@ -2,6 +2,7 @@
namespace App\Http\Middleware;
use Symfony\Component\HttpFoundation\Response;
use Closure;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
@@ -16,7 +17,7 @@ class RedirectIfAuthenticated
* @param string|null $guard
* @return mixed
*/
public function handle(Request $request, Closure $next, string $guard = null)
public function handle(Request $request, Closure $next, string $guard = null): Response
{
if (Auth::guard($guard)->check()) {
return redirect()->intended();