MDL-77328 qtype_multianswer: Refactor for PHP 8.2 compatibility
This commit addresses compatibility issues in the qtype_multianswer question type. The following changes were made: - The usage of the undeclared property $maxmark on subquestions in qtype_multianswer was identified as problematic. To resolve this, the existing declared property $defaultmark is now being used for the same purpose. By switching to the declared property $defaultmark, compatibility with PHP 8.2 is ensured and the issue with the undeclared property is resolved.
This commit is contained in:
@@ -88,7 +88,7 @@ abstract class question_definition {
|
||||
/** @var integer question test format. */
|
||||
public $generalfeedbackformat;
|
||||
|
||||
/** @var number what this quetsion is marked out of, by default. */
|
||||
/** @var float what this quetsion is marked out of, by default. */
|
||||
public $defaultmark = 1;
|
||||
|
||||
/** @var integer How many question numbers this question consumes. */
|
||||
|
||||
Reference in New Issue
Block a user