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:
Meirza 2023-02-08 22:41:32 +07:00
parent 6856a84f17
commit 0cfa082328

View File

@ -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();
}