Skip to content

Commit 7a9a904

Browse files
committed
refactor: Set typing in mailable
1 parent f0959ec commit 7a9a904

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/App/Mail/ExceptionOccurred.php

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,10 @@ class ExceptionOccurred extends Mailable
1010
{
1111
use Queueable, SerializesModels;
1212

13-
private $content;
13+
private array $content;
1414

1515
/**
1616
* Create a new message instance.
17-
*
18-
* @return void
1917
*/
2018
public function __construct($content)
2119
{
@@ -24,10 +22,8 @@ public function __construct($content)
2422

2523
/**
2624
* Build the message.
27-
*
28-
* @return $this
2925
*/
30-
public function build()
26+
public function build(): Mailable
3127
{
3228
$emailsTo = str_getcsv(config('exceptions.emailExceptionsTo'), ',');
3329
$ccEmails = str_getcsv(config('exceptions.emailExceptionCCto'), ',');

0 commit comments

Comments
 (0)