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:
Meirza
2023-02-13 19:51:46 +07:00
parent e2cd808b34
commit d8474a647a
2 changed files with 2 additions and 2 deletions
@@ -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);