Skip to content

Commit

Permalink
MDL-76415 core_privacy: Fixed ${var} string interpolation deprecations.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
meirzamoodle committed Feb 13, 2023
1 parent 1c21888 commit 2a33c27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion privacy/classes/tests/provider_testcase.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public function export_context_data_for_user(int $userid, \context $context, str
* @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");
Expand Down

0 comments on commit 2a33c27

Please sign in to comment.