type hint the middleware Request (#5438)

stemming from https://github.com/laravel/framework/pull/34224
This commit is contained in:
Andrew Brown
2020-10-02 08:31:13 -05:00
committed by GitHub
parent a6ca577839
commit 38bc9119eb

View File

@@ -4,6 +4,7 @@ namespace App\Http\Middleware;
use App\Providers\RouteServiceProvider;
use Closure;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
class RedirectIfAuthenticated
@@ -16,7 +17,7 @@ class RedirectIfAuthenticated
* @param string|null ...$guards
* @return mixed
*/
public function handle($request, Closure $next, ...$guards)
public function handle(Request $request, Closure $next, ...$guards)
{
$guards = empty($guards) ? [null] : $guards;