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:
Meirza 2023-01-26 10:04:24 +07:00
parent 1c218880a9
commit 2a33c2736a

View File

@ -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");