From 74a62c37b4725b61f2fd0681379bb6821fb5f212 Mon Sep 17 00:00:00 2001 From: Andreas Lemke Date: Wed, 28 Jun 2017 16:08:49 +0200 Subject: [PATCH] change Swift_Message call --- Listener/Notifier.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Listener/Notifier.php b/Listener/Notifier.php index cb7f325..1538726 100644 --- a/Listener/Notifier.php +++ b/Listener/Notifier.php @@ -351,7 +351,7 @@ public function createMailAndSend($exception, Request $request = null, $context $subject = substr($subject, 0, 255); } - $mail = \Swift_Message::newInstance() + $mail = (new \Swift_Message()) ->setSubject($subject) ->setFrom($this->from) ->setTo($this->to)