From c86e2423b926456b84c9a651f55a191e4eeab81a Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 3 Mar 2021 13:31:25 +0300 Subject: set Mailer in hook_send_mail prototype --- init.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.php b/init.php index fcde6ed..25cf309 100644 --- a/init.php +++ b/init.php @@ -33,7 +33,7 @@ class mailer_smtp extends Plugin { $host->add_hook(PluginHost::HOOK_SEND_MAIL, $this); } - function hook_send_mail($mailer, $params) { + function hook_send_mail(Mailer $mailer, $params) { if (Config::get(self::SMTP_SERVER)) { $phpmailer = new \PHPMailer\PHPMailer\PHPMailer(); -- cgit v1.2.3