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:
@@ -43,11 +43,8 @@ class UserNewPassword extends Notification
|
||||
{
|
||||
use Queueable;
|
||||
|
||||
private string $url;
|
||||
|
||||
public function __construct(string $url)
|
||||
public function __construct(private string $url)
|
||||
{
|
||||
$this->url = $url;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -69,7 +66,7 @@ class UserNewPassword 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.password', ['url' => $this->url, 'ip' => $ip, 'host' => $host, 'userAgent' => $userAgent, 'time' => $time])
|
||||
->subject((string) trans('email.reset_pw_subject'))
|
||||
;
|
||||
|
Reference in New Issue
Block a user