Skip to content

Commit

Permalink
Fix Return Type Problem (#1562)
Browse files Browse the repository at this point in the history
* Fix Return Type Problem

Function returns either a view or redirect, both should be allowed.

* StyleCi Fix!

* Another annoying StyleCI Fix!!
  • Loading branch information
FatihKoz authored Jun 30, 2023
1 parent 1e71d25 commit d76389a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/Http/Controllers/Auth/RegisterController.php
Original file line number Diff line number Diff line change
Expand Up @@ -178,9 +178,9 @@ protected function create(Request $request): User
*
* @throws \Exception
*
* @return RedirectResponse
* @return RedirectResponse|View
*/
public function register(Request $request): RedirectResponse
public function register(Request $request): RedirectResponse|View
{
$this->validator($request->all())->validate();

Expand Down

0 comments on commit d76389a

Please sign in to comment.