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
+1 -1
View File
@@ -123,7 +123,7 @@ class cli_test extends \advanced_testcase {
set_config('passwordpolicy', 0);
$this->setAdminUser();
$this->field1 = $this->getDataGenerator()->create_custom_profile_field([
$this->getDataGenerator()->create_custom_profile_field([
'shortname' => 'superfield', 'name' => 'Super field',
'datatype' => 'text', 'signup' => 1, 'visible' => 1, 'required' => 1, 'sortorder' => 1]);