fix hinting and tests for L10 and PHP8

This commit is contained in:
2023-05-25 08:18:51 +10:00
parent f839003f5e
commit e8827cbd50
5 changed files with 19 additions and 8 deletions

View File

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