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
…ixes #39
  • Loading branch information
ajibarra committed Dec 2, 2022
1 parent 2e0d4b4 commit 8cdc8b7
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/Mailer/Transport/MailgunTransport.php
Original file line number Diff line number Diff line change
Expand Up @@ -327,4 +327,14 @@ protected function _processHeaders(Message $message): void
}
}
}

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

0 comments on commit 8cdc8b7

Please sign in to comment.