1 | <?php |
||||
2 | |||||
3 | namespace ProtoneMedia\LaravelVerifyNewEmail\Mail; |
||||
4 | |||||
5 | use Illuminate\Bus\Queueable; |
||||
6 | use Illuminate\Contracts\Queue\ShouldQueue; |
||||
7 | use Illuminate\Database\Eloquent\Model; |
||||
8 | use Illuminate\Mail\Mailable; |
||||
9 | use Illuminate\Queue\SerializesModels; |
||||
10 | |||||
11 | class VerifyNewEmail extends Mailable implements ShouldQueue |
||||
12 | { |
||||
13 | use Queueable, SerializesModels; |
||||
0 ignored issues
–
show
introduced
by
![]() |
|||||
14 | |||||
15 | /** |
||||
16 | * @var \Illuminate\Database\Eloquent\Model |
||||
17 | */ |
||||
18 | public $pendingUserEmail; |
||||
19 | |||||
20 | /** |
||||
21 | * Create a new message instance. |
||||
22 | * |
||||
23 | * @return void |
||||
24 | */ |
||||
25 | public function __construct(Model $pendingUserEmail) |
||||
26 | { |
||||
27 | $this->pendingUserEmail = $pendingUserEmail; |
||||
28 | } |
||||
29 | |||||
30 | /** |
||||
31 | * Build the message. |
||||
32 | * |
||||
33 | * @return $this |
||||
34 | */ |
||||
35 | public function build() |
||||
36 | { |
||||
37 | $this->subject(__('Verify Email Address')); |
||||
0 ignored issues
–
show
It seems like
__('Verify Email Address') can also be of type array and array ; however, parameter $subject of Illuminate\Mail\Mailable::subject() does only seem to accept string , maybe add an additional type check?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
![]() |
|||||
38 | |||||
39 | return $this->markdown('verify-new-email::verifyNewEmail', [ |
||||
40 | 'url' => $this->pendingUserEmail->verificationUrl(), |
||||
41 | ]); |
||||
42 | } |
||||
43 | } |
||||
44 |