MDL-77350 auth: 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-01-19 21:58:18 +07:00
parent 47fd891039
commit 684343eee7
3 changed files with 21 additions and 0 deletions

View File

@ -45,6 +45,12 @@ require_once($CFG->dirroot . '/webservice/tests/helpers.php');
*/
class external_test extends externallib_advanced_testcase {
/** @var int custom profile field1 ID. */
protected $field1;
/** @var int custom profile field2 ID. */
protected $field2;
/**
* Set up for every test
*/

View File

@ -86,6 +86,18 @@ require_once($CFG->dirroot.'/auth/ldap/locallib.php');
*/
class auth_plugin_ldap extends auth_plugin_base {
/** @var string */
protected $roleauth;
/** @var string */
public $pluginconfig;
/** @var LDAP\Connection LDAP connection. */
protected $ldapconnection;
/** @var int */
protected $ldapconns = 0;
/**
* Init plugin config from database settings depending on the plugin auth type.
*/

View File

@ -32,6 +32,9 @@ require_once($CFG->libdir.'/authlib.php');
*/
class auth_plugin_mnet extends auth_plugin_base {
/** @var mnet_environment mnet environment. */
protected $mnet;
/**
* Constructor.
*/