MDL-76415 core: 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-02-13 19:51:46 +07:00
parent 6b02417e8c
commit e2cd808b34
9 changed files with 24 additions and 24 deletions
+1 -1
View File
@@ -903,7 +903,7 @@ class component_test extends advanced_testcase {
// Iterate over all apis and perform more validations.
foreach ($apis as $apiname => $attributes) {
// Message, to be used later and easier finding the problem.
$message = "Validation problem found with API: ${apiname}";
$message = "Validation problem found with API: {$apiname}";
$this->assertIsObject($attributes, $message);
$this->assertMatchesRegularExpression('/^[a-z][a-z0-9]+$/', $apiname, $message);