From 2050f506c334dbdafb85b06bff028d4073cda09b Mon Sep 17 00:00:00 2001 From: Marcus Bointon Date: Tue, 25 Nov 2025 08:08:54 +0100 Subject: [PATCH] Deprecate version constants in SMTP and POP3 classes; they will always be the same as PHPMailer:VERSION --- src/POP3.php | 1 + src/SMTP.php | 1 + 2 files changed, 2 insertions(+) diff --git a/src/POP3.php b/src/POP3.php index c881a1c3..92d6633e 100644 --- a/src/POP3.php +++ b/src/POP3.php @@ -45,6 +45,7 @@ class POP3 * The POP3 PHPMailer Version number. * * @var string + * @deprecated This constant will be removed in PHPMailer 8.0. Use `PHPMailer::VERSION` instead. */ const VERSION = '7.0.0'; diff --git a/src/SMTP.php b/src/SMTP.php index c3fb54cb..27f02e72 100644 --- a/src/SMTP.php +++ b/src/SMTP.php @@ -34,6 +34,7 @@ class SMTP * The PHPMailer SMTP version number. * * @var string + * @deprecated This constant will be removed in PHPMailer 8.0. Use `PHPMailer::VERSION` instead. */ const VERSION = '7.0.0';