academico-sis /
academico
| 1 | <?php |
||||
| 2 | |||||
| 3 | namespace App\Mail; |
||||
| 4 | |||||
| 5 | use App\Models\Teacher; |
||||
| 6 | use Illuminate\Bus\Queueable; |
||||
| 7 | use Illuminate\Contracts\Queue\ShouldQueue; |
||||
| 8 | use Illuminate\Mail\Mailable; |
||||
| 9 | use Illuminate\Queue\SerializesModels; |
||||
| 10 | |||||
| 11 | class PendingAttendanceReminder extends Mailable implements ShouldQueue |
||||
| 12 | { |
||||
| 13 | use Queueable; |
||||
| 14 | use SerializesModels; |
||||
|
0 ignored issues
–
show
introduced
by
Loading history...
|
|||||
| 15 | |||||
| 16 | /** |
||||
| 17 | * Create a new message instance. |
||||
| 18 | * |
||||
| 19 | * @return void |
||||
| 20 | */ |
||||
| 21 | public function __construct(public Teacher $teacher, public $events) |
||||
| 22 | { |
||||
| 23 | } |
||||
| 24 | |||||
| 25 | /** |
||||
| 26 | * Build the message. |
||||
| 27 | * |
||||
| 28 | * @return $this |
||||
| 29 | */ |
||||
| 30 | public function build() |
||||
| 31 | { |
||||
| 32 | return $this |
||||
| 33 | ->subject(__('Incomplete Attendance')) |
||||
|
0 ignored issues
–
show
It seems like
__('Incomplete Attendance') 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
Loading history...
|
|||||
| 34 | ->view('emails.attendance_reminder'); |
||||
| 35 | } |
||||
| 36 | } |
||||
| 37 |