mirror of
https://github.com/moodle/moodle.git
synced 2025-04-13 12:32:08 +02:00
MDL-76415 core_privacy: Fixed ${var} string 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
1c218880a9
commit
2a33c2736a
@ -100,7 +100,7 @@ abstract class provider_testcase extends \advanced_testcase {
|
||||
* @return string
|
||||
*/
|
||||
protected function get_provider_classname($component) {
|
||||
$classname = "\\${component}\\privacy\\provider";
|
||||
$classname = "\\{$component}\\privacy\\provider";
|
||||
|
||||
if (!class_exists($classname)) {
|
||||
throw new \coding_exception("{$component} does not implement any provider");
|
||||
|
Loading…
x
Reference in New Issue
Block a user