MDL-77350 comment: Added class properties that are not declared

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-01-21 00:11:58 +07:00
parent 7bd302f1f6
commit 0d3a840154
2 changed files with 20 additions and 0 deletions

View File

@ -96,6 +96,8 @@ class comment {
private static $comment_page = null;
/** @var string comment itemid component in non-javascript UI */
private static $comment_component = null;
/** @var stdClass comment paramaters for callback. */
protected $comment_param;
/**
* Construct function of comment class, initialise

View File

@ -27,6 +27,24 @@ class comment_manager {
/** @var int The number of comments to display per page */
private $perpage;
/** @var stdClass Course data. */
protected $course;
/** @var context|bool To store the context object or false if not found. */
protected $context;
/** @var stdClass Course module. */
protected $cm;
/** @var course_modinfo Module information for course, or null if resetting. */
protected $modinfo;
/** @var string plugin type. */
protected $plugintype;
/** @var string plugin name. */
protected $pluginname;
/**
* Constructs the comment_manage object
*/