mirror of
https://github.com/moodle/moodle.git
synced 2025-04-13 04:22:07 +02:00
MDL-77350 portfolio: 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:
parent
6856a84f17
commit
0cfa082328
@ -50,6 +50,9 @@ class portfolio_plugin_mahara extends portfolio_plugin_pull_base {
|
||||
private $totalsize; // total size of all included files added together
|
||||
private $continueurl; // if we've been sent back a specific url to continue to (eg folder id)
|
||||
|
||||
/** @var mnet_environment the equivalent of old $MNET global. */
|
||||
public $mnet;
|
||||
|
||||
protected function init() {
|
||||
$this->mnet = get_mnet_environment();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user