From 00910831a432a18c004a6ea467bb87b6ddb8f8fa Mon Sep 17 00:00:00 2001 From: Leonid Nikitin Date: Thu, 6 Jul 2023 19:50:22 +0600 Subject: [PATCH] The authorization method of the AuthController has been updated to specify a return type. This was done to ensure that the method always returns an instance of a RedirectResponse, thereby enhancing the code's readability and preventing unexpected return types. --- app/Http/Controllers/AuthController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/AuthController.php b/app/Http/Controllers/AuthController.php index 32fab44..1ac73c8 100644 --- a/app/Http/Controllers/AuthController.php +++ b/app/Http/Controllers/AuthController.php @@ -22,7 +22,7 @@ final class AuthController extends Controller return view('public/login'); } - public function authorization(AuthorizationRequest $request) + public function authorization(AuthorizationRequest $request): RedirectResponse { $authorization = $request->getDto(); $result = $this->authService->authorization($authorization);