Skip to content

Commit

Permalink
fix swift message creation for swiftmailer 6 (#96)
Browse files Browse the repository at this point in the history
  • Loading branch information
sdieunidou committed Sep 7, 2017
1 parent f555723 commit 1b72bee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Message/MessageFactory.php
Expand Up @@ -255,7 +255,7 @@ protected function createMessageInstance()
$hasSigner = $this->signer->hasSigner();
$class = $hasSigner ? '\Swift_SignedMessage' : '\Swift_Message';

$message = $class::newInstance();
$message = new $class();

if ($hasSigner) {
$message->attachSigner($this->signer->createSigner());
Expand Down

0 comments on commit 1b72bee

Please sign in to comment.