Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Commit

Permalink
Merge pull request zendframework/zendframework#2185 from weierophinne…
Browse files Browse the repository at this point in the history
…y/hotfix/log-exceptions

[ZF2-468] Missing sprintf calls
  • Loading branch information
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Writer/Mail.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,10 @@ public function __construct($mail, Transport\TransportInterface $transport = nul

// Ensure we have a valid mail message
if (!$mail instanceof MailMessage) {
throw new Exception\InvalidArgumentException(
throw new Exception\InvalidArgumentException(sprintf(
'Mail parameter of type %s is invalid; must be of type Zend\Mail\Message',
(is_object($mail) ? get_class($mail) : gettype($mail))
);
));
}
$this->mail = $mail;

Expand All @@ -103,10 +103,10 @@ public function __construct($mail, Transport\TransportInterface $transport = nul
$transport = new Transport\Sendmail();
}
if (!$transport instanceof Transport\TransportInterface) {
throw new Exception\InvalidArgumentException(
throw new Exception\InvalidArgumentException(sprintf(
'Transport parameter of type %s is invalid; must be of type Zend\Mail\Transport\TransportInterface',
(is_object($transport) ? get_class($transport) : gettype($transport))
);
));
}
$this->setTransport($transport);

Expand Down

0 comments on commit c5509fe

Please sign in to comment.