mirror of
https://github.com/moodle/moodle.git
synced 2025-04-13 04:22:07 +02:00
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:
parent
7bd302f1f6
commit
0d3a840154
@ -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
|
||||
|
@ -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
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user