MDL-77350 completion: 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-05-17 09:00:09 +07:00
committed by meirzamoodle
parent 88a1d4d4c2
commit 3be559b763
3 changed files with 11 additions and 0 deletions
+2
View File
@@ -66,6 +66,8 @@ class completion_completion extends data_object {
/* @var int Flag to trigger cron aggregation (timestamp) */
public $reaggregate;
/** @var float user's course grade. */
public $gradefinal;
/**
* Finds and returns a data_object instance based on params.
@@ -152,6 +152,12 @@ abstract class completion_criteria extends data_object {
/* @var int Role ID that has the ability to mark a user as complete (for role completion) */
public $role;
/** @var string course instance. */
public $courseinstance;
/** @var mixed time end. */
public $timeend;
/**
* Finds and returns all data_object instances based on params.
*
+3
View File
@@ -64,6 +64,9 @@ abstract class data_object {
/* @var int The primary key */
public $id;
/** @var int completed status. */
public $completedself;
/**
* Constructor. Optionally (and by default) attempts to fetch corresponding row from DB.