MDL-76415 gradereport_singleview: Fixed str interpolation deprecations.
Since PHP 8.2, placing the dollar sign outside the curly brace is deprecated when the expression inside the braces resolves to a variable or an expression.
This commit is contained in:
@@ -97,7 +97,7 @@ class select extends screen {
|
||||
$types = gradereport_singleview\report\singleview::valid_screens();
|
||||
|
||||
foreach ($types as $type) {
|
||||
$classname = "gradereport_singleview\\local\\screen\\${type}";
|
||||
$classname = "gradereport_singleview\\local\\screen\\{$type}";
|
||||
|
||||
$screen = new $classname($this->courseid, null, $this->groupid);
|
||||
|
||||
|
||||
@@ -109,7 +109,7 @@ class singleview extends grade_report {
|
||||
|
||||
$this->setup_item_selector($itemtype, $itemid);
|
||||
|
||||
$screenclass = "\\gradereport_singleview\\local\\screen\\${itemtype}";
|
||||
$screenclass = "\\gradereport_singleview\\local\\screen\\{$itemtype}";
|
||||
|
||||
$this->screen = new $screenclass($courseid, $itemid, $this->currentgroup);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user