Skip to content
This repository has been archived by the owner on Mar 22, 2023. It is now read-only.

Commit

Permalink
change Swift_Message call
Browse files Browse the repository at this point in the history
  • Loading branch information
ickbinhier authored Jun 28, 2017
1 parent 8dfd7d8 commit 74a62c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Listener/Notifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 74a62c3

Please sign in to comment.