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

@@ -40,13 +40,8 @@ class MFAManyFailedAttemptsNotification extends Notification
{
use Queueable;
private int $count;
private User $user;
public function __construct(User $user, int $count)
public function __construct(private User $user, private int $count)
{
$this->user = $user;
$this->count = $count;
}
public function toArray(User $notifiable): array
@@ -66,7 +61,7 @@ class MFAManyFailedAttemptsNotification extends Notification
$userAgent = Request::userAgent();
$time = now(config('app.timezone'))->isoFormat((string) trans('config.date_time_js'));
return (new MailMessage())->markdown('emails.security.many-failed-attempts', ['user' => $this->user, 'count' => $this->count, 'ip' => $ip, 'host' => $host, 'userAgent' => $userAgent, 'time' => $time])->subject($subject);
return new MailMessage()->markdown('emails.security.many-failed-attempts', ['user' => $this->user, 'count' => $this->count, 'ip' => $ip, 'host' => $host, 'userAgent' => $userAgent, 'time' => $time])->subject($subject);
}
public function toNtfy(User $notifiable): Message