MDL-77350 message: Added missing class properties

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.
This commit is contained in:
Meirza
2023-05-16 00:33:19 +07:00
parent 0fcba75ea7
commit 99368d4173
2 changed files with 6 additions and 0 deletions
+3
View File
@@ -34,6 +34,9 @@ require_once($CFG->dirroot . '/message/output/popup/tests/base.php');
class api_test extends \advanced_testcase {
use \message_popup_test_helper;
/** @var \phpunit_message_sink message redirection. */
public $messagesink;
/**
* Test set up.
*
@@ -37,6 +37,9 @@ require_once($CFG->dirroot . '/message/output/popup/tests/base.php');
class externallib_test extends \advanced_testcase {
use message_popup_test_helper;
/** @var \phpunit_message_sink message redirection. */
public $messagesink;
/**
* Test set up.
*