MDL-77299 question: 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.

Co-authored-by: Tim Hunt <[email protected]>
This commit is contained in:
Meirza
2023-03-01 10:09:09 +07:00
co-authored by Tim Hunt
parent 9ee4f8db8b
commit e4b24bdd79
27 changed files with 130 additions and 43 deletions
+3 -1
View File
@@ -54,6 +54,8 @@ class qformat_default {
protected $importcontext = null;
/** @var bool $displayprogress Whether to display progress. */
public $displayprogress = true;
/** @var context[] */
public $contexts;
// functions to indicate import/export functionality
// override to return true if implemented
@@ -166,7 +168,7 @@ class qformat_default {
/**
* set an array of contexts.
* @param array $contexts Moodle course variable
* @param context[] $contexts
*/
public function setContexts($contexts) {
$this->contexts = $contexts;