mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
More PHP8.4 updates
This commit is contained in:
@@ -41,11 +41,8 @@ class UnknownUserLoginAttempt extends Notification
|
||||
{
|
||||
use Queueable;
|
||||
|
||||
private string $address;
|
||||
|
||||
public function __construct(string $address)
|
||||
public function __construct(private string $address)
|
||||
{
|
||||
$this->address = $address;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -45,11 +45,8 @@ class UserInvitation extends Notification
|
||||
{
|
||||
use Queueable;
|
||||
|
||||
private InvitedUser $invitee;
|
||||
|
||||
public function __construct(InvitedUser $invitee)
|
||||
public function __construct(private InvitedUser $invitee)
|
||||
{
|
||||
$this->invitee = $invitee;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -72,7 +69,7 @@ class UserInvitation extends Notification
|
||||
$time = now(config('app.timezone'))->isoFormat((string) trans('config.date_time_js'));
|
||||
|
||||
|
||||
return (new MailMessage())
|
||||
return new MailMessage()
|
||||
->markdown('emails.invitation-created', ['email' => $this->invitee->user->email, 'invitee' => $this->invitee->email, 'ip' => $ip, 'host' => $host, 'userAgent' => $userAgent, 'time' => $time])
|
||||
->subject((string) trans('email.invitation_created_subject'))
|
||||
;
|
||||
|
@@ -45,11 +45,8 @@ class UserRegistration extends Notification
|
||||
{
|
||||
use Queueable;
|
||||
|
||||
private User $user;
|
||||
|
||||
public function __construct(User $user)
|
||||
public function __construct(private User $user)
|
||||
{
|
||||
$this->user = $user;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -71,7 +68,7 @@ class UserRegistration extends Notification
|
||||
$userAgent = Request::userAgent();
|
||||
$time = now(config('app.timezone'))->isoFormat((string) trans('config.date_time_js'));
|
||||
|
||||
return (new MailMessage())
|
||||
return new MailMessage()
|
||||
->markdown('emails.registered-admin', ['email' => $this->user->email, 'id' => $this->user->id, 'ip' => $ip, 'host' => $host, 'userAgent' => $userAgent, 'time' => $time])
|
||||
->subject((string) trans('email.registered_subject_admin'))
|
||||
;
|
||||
|
@@ -42,11 +42,8 @@ class VersionCheckResult extends Notification
|
||||
{
|
||||
use Queueable;
|
||||
|
||||
private string $message;
|
||||
|
||||
public function __construct(string $message)
|
||||
public function __construct(private string $message)
|
||||
{
|
||||
$this->message = $message;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -63,7 +60,7 @@ class VersionCheckResult extends Notification
|
||||
*/
|
||||
public function toMail(OwnerNotifiable $notifiable): MailMessage
|
||||
{
|
||||
return (new MailMessage())
|
||||
return new MailMessage()
|
||||
->markdown('emails.new-version', ['message' => $this->message])
|
||||
->subject((string) trans('email.new_version_email_subject'))
|
||||
;
|
||||
|
Reference in New Issue
Block a user