MDL-76415 assignfeedback_editpdf: Fixed str 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:01:57 +07:00
parent d8474a647a
commit 3c0fa9b9cb

View File

@ -70,7 +70,7 @@ if ($action === 'pollconversions') {
// Get a lock for the PDF/Image conversion of the assignment files. // Get a lock for the PDF/Image conversion of the assignment files.
$lockfactory = \core\lock\lock_config::get_lock_factory('assignfeedback_editpdf_pollconversions'); $lockfactory = \core\lock\lock_config::get_lock_factory('assignfeedback_editpdf_pollconversions');
$resource = "user:${userid},assignmentid:${assignmentid},attemptnumber:${attemptnumber}"; $resource = "user:{$userid},assignmentid:{$assignmentid},attemptnumber:{$attemptnumber}";
$lock = $lockfactory->get_lock($resource, 0); $lock = $lockfactory->get_lock($resource, 0);
// Could not get lock, send back JSON to poll again. // Could not get lock, send back JSON to poll again.