Use nullable typing (#6084)

This commit is contained in:
Jason McCreary
2023-01-27 06:53:58 -05:00
committed by GitHub
parent f62d260c76
commit de868f0fc7

View File

@@ -10,7 +10,7 @@ class Authenticate extends Middleware
/**
* Get the path the user should be redirected to when they are not authenticated.
*/
protected function redirectTo(Request $request): string|null
protected function redirectTo(Request $request): ?string
{
return $request->expectsJson() ? null : route('login');
}