Skip to content

Commit

Permalink
enforce string
Browse files Browse the repository at this point in the history
  • Loading branch information
nadar committed May 25, 2022
1 parent 2d51ded commit b7504a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/components/Mail.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ public function getMailer()
}
$this->_mailer->isSMTP();
$this->_mailer->SMTPSecure = $this->smtpSecure;
$this->_mailer->Host = $this->host;
$this->_mailer->Host = (string) $this->host;
$this->_mailer->SMTPAuth= $this->smtpAuth;
$this->_mailer->Username = $this->username;
$this->_mailer->Password = $this->password;
Expand Down Expand Up @@ -495,7 +495,7 @@ public function smtpTest($verbose)

try {
// connect to an SMTP server
if ($smtp->connect($this->host, $this->port)) {
if ($smtp->connect((string) $this->host, $this->port)) {
// yay hello
if ($smtp->hello('localhost')) {
if ($smtp->authenticate($this->username, $this->password)) {
Expand Down

0 comments on commit b7504a9

Please sign in to comment.