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-01-26 09:58:14 +07:00
parent 6b02417e8c
commit e2cd808b34
9 changed files with 24 additions and 24 deletions
+1 -1
View File
@@ -53,7 +53,7 @@ function moodle_minimum_php_version_is_met($haltexecution = false) {
if (version_compare(PHP_VERSION, $minimumversion) < 0) {
if ($haltexecution) {
$error = "Moodle ${moodlerequirementchanged} or later requires at least PHP ${minimumversion} "
$error = "Moodle {$moodlerequirementchanged} or later requires at least PHP {$minimumversion} "
. "(currently using version " . PHP_VERSION .").\n"
. "Some servers may have multiple PHP versions installed, are you using the correct executable?\n";