MDL-78159 lib: Added missing properties for core libraries
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:
@@ -158,6 +158,12 @@ class navigation_node implements renderable {
|
||||
public $showinsecondarynavigation = true;
|
||||
/** @var bool If set to true the children of this node will be displayed within a submenu when applicable */
|
||||
public $showchildreninsubmenu = false;
|
||||
/** @var string tab element ID. */
|
||||
public $tab;
|
||||
/** @var string unique identifier. */
|
||||
public $moremenuid;
|
||||
/** @var bool node that have children. */
|
||||
public $haschildren;
|
||||
|
||||
/**
|
||||
* Constructs a new navigation_node
|
||||
@@ -2279,7 +2285,6 @@ class global_navigation extends navigation_node {
|
||||
if ($this->includesectionnum !== false && $this->includesectionnum == $section->section) {
|
||||
$this->load_section_activities($sectionnode, $section->section, $activities);
|
||||
}
|
||||
$section->sectionnode = $sectionnode;
|
||||
$navigationsections[$sectionid] = $section;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user