Skip to content

Commit 691db2c

Browse files
committed
refactor: Align throwable variable name
1 parent 7af266f commit 691db2c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/App/Traits/ExceptionNotificationHandlerTrait.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ trait ExceptionNotificationHandlerTrait
3232
* @param Throwable $exception
3333
* @return void
3434
*/
35-
public function report(Throwable $exception)
35+
public function report(Throwable $e): void
3636
{
3737
$enableEmailExceptions = config('exceptions.emailExceptionEnabled');
3838

@@ -41,12 +41,12 @@ public function report(Throwable $exception)
4141
}
4242

4343
if ($enableEmailExceptions) {
44-
if ($this->shouldReport($exception)) {
45-
$this->sendEmail($exception);
44+
if ($this->shouldReport($e)) {
45+
$this->sendEmail($e);
4646
}
4747
}
4848

49-
parent::report($exception);
49+
parent::report($e);
5050
}
5151

5252
/**

0 commit comments

Comments
 (0)