diff --git a/src/PHPMailer.php b/src/PHPMailer.php index 8a50d06b4..5411e4ff8 100644 --- a/src/PHPMailer.php +++ b/src/PHPMailer.php @@ -527,9 +527,9 @@ class PHPMailer /** * What to put in the X-Mailer header. - * Options: An empty string for PHPMailer default, whitespace for none, or a string to use. + * Options: An empty string for PHPMailer default, whitespace/null for none, or a string to use. * - * @var string + * @var string|null */ public $XMailer = ''; @@ -2380,7 +2380,7 @@ public function createHeader() if (null !== $this->Priority) { $result .= $this->headerLine('X-Priority', $this->Priority); } - if ('' == $this->XMailer) { + if ('' === $this->XMailer) { $result .= $this->headerLine( 'X-Mailer', 'PHPMailer ' . self::VERSION . ' (https://github.com/PHPMailer/PHPMailer)'