MDL-77336 admin: 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-03-06 16:44:06 +07:00
parent 556208417d
commit e2d5d50276
33 changed files with 200 additions and 15 deletions
@@ -28,6 +28,33 @@ use core_competency\course_module_competency;
*/
class processor_test extends \advanced_testcase {
/** @var \core_competency\competency_framework|null $f1 */
protected $f1 = null;
/** @var \core_competency\competency_framework|null $f2 */
protected $f2 = null;
/** @var object|null $c1 course instance. */
protected ?object $c1 = null;
/** @var object|null $c2 course instance. */
protected ?object $c2 = null;
/** @var array $f1comps */
protected array $f1comps = [];
/** @var array $f2comps */
protected array $f2comps = [];
/** @var array $cms */
protected array $cms = [];
/** @var array $ccs */
protected array $ccs = [];
/** @var array $cmcs */
protected array $cmcs = [];
/**
* This sets up a few things, and assign class variables.
*