Skip to content

Commit

Permalink
type hint the middleware Request (#5438)
Browse files Browse the repository at this point in the history
  • Loading branch information
browner12 committed Oct 2, 2020
1 parent a6ca577 commit 38bc911
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/Http/Middleware/RedirectIfAuthenticated.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

use App\Providers\RouteServiceProvider;
use Closure;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;

class RedirectIfAuthenticated
Expand All @@ -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;

Expand Down

0 comments on commit 38bc911

Please sign in to comment.