From 4c2d560fc7e774b0bdcc71b707aa28257de56ea9 Mon Sep 17 00:00:00 2001 From: Meirza Date: Mon, 8 May 2023 10:02:16 +0700 Subject: [PATCH] MDL-78146 lib: Added missing class properties in phpmailer In PHP 8.2 and later, setting a value to an undeclared class property is deprecated and emits a deprecation notice. So we need to add missing class properties that still need to be declared. --- lib/phpmailer/moodle_phpmailer.php | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/phpmailer/moodle_phpmailer.php b/lib/phpmailer/moodle_phpmailer.php index 1d43fa090d3..501d1159f3f 100644 --- a/lib/phpmailer/moodle_phpmailer.php +++ b/lib/phpmailer/moodle_phpmailer.php @@ -47,7 +47,6 @@ class moodle_phpmailer extends \PHPMailer\PHPMailer\PHPMailer { */ public function __construct(){ global $CFG; - $this->Version = 'Moodle '.$CFG->version; // mailer version $this->CharSet = 'UTF-8'; // MDL-52637: Disable the automatic TLS encryption added in v5.2.10 (9da56fc1328a72aa124b35b738966315c41ef5c6). $this->SMTPAutoTLS = false;