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.

This commit is contained in:
Leonid Nikitin 2023-07-06 19:50:22 +06:00
parent 5d61ab425e
commit 00910831a4
Signed by: kor-elf
GPG Key ID: 7DE8F80C5CEC2C0D

View File

@ -22,7 +22,7 @@ final class AuthController extends Controller
return view('public/login'); return view('public/login');
} }
public function authorization(AuthorizationRequest $request) public function authorization(AuthorizationRequest $request): RedirectResponse
{ {
$authorization = $request->getDto(); $authorization = $request->getDto();
$result = $this->authService->authorization($authorization); $result = $this->authService->authorization($authorization);