Skip to content

Commit

Permalink
fix issue with PHP8 and required paramater
Browse files Browse the repository at this point in the history
  • Loading branch information
felix Valerio committed Apr 4, 2024
1 parent 7f29dfa commit bd333b9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Service/Mailer.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public function sendFromTemplate($from, $to, $cc, $bcc, $subject, $template, $pa
* @return bool
*/
public function sendEmail($from, $to, $cc, $bcc, $subject, $html, $attachments = array(), $smtp = null) {
return $this->processEmail($from, $to, $cc, $bcc, $subject, $html, $attachments, $smtp);
return $this->processEmail($from, $to, $subject, $cc, $bcc, $html, $attachments, $smtp);
}

/**
Expand All @@ -89,9 +89,9 @@ public function resend(Email $email) {
$this->processEmail(
$email->getMessageFrom(),
$email->getMessageTo(),
$email->getMessageSubject(),
$email->getMessageCc(),
$email->getMessageBcc(),
$email->getMessageSubject(),
$email->getMessageBody(),
$email->getAttachments()
);
Expand Down Expand Up @@ -298,7 +298,7 @@ private function embedBase64Images(\Swift_Message $message, $body)
* @param array $attachments
* @return bool
*/
private function processEmail($from, $to, $cc = array(), $bcc = array(), $subject, $html = "", $attachments = array(), $smtp = null) {
private function processEmail($from, $to, $subject, $cc = array(), $bcc = array(), $html = "", $attachments = array(), $smtp = null) {

if($this->devMode) {
$to = $this->devTo;
Expand Down

0 comments on commit bd333b9

Please sign in to comment.