More PHP8.4 updates

This commit is contained in:
James Cole
2025-05-04 13:47:00 +02:00
parent e42107c03c
commit 51e86448c7
195 changed files with 524 additions and 715 deletions

View File

@@ -42,15 +42,8 @@ class BillReminder extends Notification
{
use Queueable;
private Bill $bill;
private int $diff;
private string $field;
public function __construct(Bill $bill, string $field, int $diff)
public function __construct(private Bill $bill, private string $field, private int $diff)
{
$this->bill = $bill;
$this->field = $field;
$this->diff = $diff;
}
/**
@@ -67,7 +60,7 @@ class BillReminder extends Notification
*/
public function toMail(User $notifiable): MailMessage
{
return (new MailMessage())
return new MailMessage()
->markdown('emails.bill-warning', ['field' => $this->field, 'diff' => $this->diff, 'bill' => $this->bill])
->subject($this->getSubject())
;