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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -4,6 +4,7 @@
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;