Skip to content

Commit 9116f05

Browse files
alamiraultnicolas-grekas
authored andcommitted
Remove unused local variable
1 parent 4140e14 commit 9116f05

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Helper/QuestionHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ private function getDefaultAnswer(Question $question): mixed
159159
}
160160

161161
if ($validator = $question->getValidator()) {
162-
return \call_user_func($question->getValidator(), $default);
162+
return \call_user_func($validator, $default);
163163
} elseif ($question instanceof ChoiceQuestion) {
164164
$choices = $question->getChoices();
165165

0 commit comments

Comments
 (0)