Skip to content

Commit

Permalink
refactor: add return types to sso exception
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiorodriguesroque committed Nov 11, 2024
1 parent d7e899d commit 7399fa2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/Exceptions/SsoException.php
Original file line number Diff line number Diff line change
@@ -3,10 +3,11 @@
namespace App\Exceptions;

use Exception;
use Illuminate\Http\RedirectResponse;

class SsoException extends Exception
{
public function render($request)
public function render(): RedirectResponse
{
return redirect()->route('login')->withErrors([
$this->getMessage()

0 comments on commit 7399fa2

Please sign in to comment.