MDL-77350 webservice: 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-02-09 10:04:46 +07:00
parent 063ffc8073
commit 4fbb4f552f
2 changed files with 3 additions and 1 deletions

View File

@ -168,7 +168,6 @@ foreach ($filterdata->services as $i => $serviceid) {
$table->define_baseurl($baseurl);
$table->attributes['class'] = 'admintable generaltable';
$table->data = [];
$table->out(30, false);
echo $OUTPUT->footer();

View File

@ -1255,6 +1255,9 @@ abstract class webservice_base_server extends webservice_server {
/** @var array List of struct classes generated for the web service methods. */
protected $servicestructs;
/** @var string service class name. */
protected $serviceclass;
/**
* This method parses the request input, it needs to get:
* 1/ user authentication - username+password or token