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:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user