Skip to content

Commit 4564790

Browse files
authored
fix PHP8 warning due to wrong initialization format (#539)
1 parent 35c0bf7 commit 4564790

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

classes/question/numerical.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ protected function question_survey_display($response, $descendantsdata, $blankqu
8383
// Numeric.
8484
$questiontags = new \stdClass();
8585
$precision = $this->precise;
86-
$a = '';
86+
$a = new \StdClass();
8787
if (isset($response->answers[$this->id][0])) {
8888
$mynumber = $response->answers[$this->id][0]->value;
8989
if ($mynumber != '') {

0 commit comments

Comments
 (0)