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