Skip to content

Commit

Permalink
Implement a reset inside __clone method to avoid headers duplication.F…
Browse files Browse the repository at this point in the history
  • Loading branch information
ajibarra committed Dec 2, 2022
1 parent 2e0d4b4 commit f2f1d07
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/Mailer/Transport/MailgunTransport.php
Original file line number Diff line number Diff line change
Expand Up @@ -327,4 +327,13 @@ protected function _processHeaders(Message $message): void
}
}
}

/**
* clone
* @return void
*/
public function __clone()
{
$this->_reset();
}
}

0 comments on commit f2f1d07

Please sign in to comment.