protected xclient variable and added tests

This commit is contained in:
Mehmet Tolga Avcioglu 2023-01-04 14:18:40 +03:00
parent 6384753f6e
commit b278bc3f1b
1 changed files with 2 additions and 2 deletions

View File

@ -2010,7 +2010,7 @@ class PHPMailer
*
* @param string $name Attribute name
* @param ?string $value Attribute value
*
*
* @return bool
*/
public function setSMTPXclientAttribute($name, $value)
@ -2020,7 +2020,7 @@ class PHPMailer
}
if (isset($this->SMTPXClient[$name]) && $value === null) {
unset($this->SMTPXClient[$name]);
} else if ($value !== null) {
} elseif ($value !== null) {
$this->SMTPXClient[$name] = $value;
}