mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-76415 report_eventlist: 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:
parent
2a33c2736a
commit
5265300706
1 changed files with 2 additions and 2 deletions
|
@ -66,11 +66,11 @@ class report_eventlist_list_generator {
|
|||
if ($detail) {
|
||||
$reflectionclass = new ReflectionClass($event);
|
||||
if (!$reflectionclass->isAbstract()) {
|
||||
$eventinformation = self::format_data($eventinformation, "\\${event}");
|
||||
$eventinformation = self::format_data($eventinformation, "\\{$event}");
|
||||
}
|
||||
} else {
|
||||
$parts = explode('\\', $event);
|
||||
$eventinformation["\\${event}"] = array_shift($parts);
|
||||
$eventinformation["\\{$event}"] = array_shift($parts);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue