Skip to content

Commit d8d2a9c

Browse files
Fix phpstan
1 parent 8302b9c commit d8d2a9c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Model/QuestionType/LdapQuestion.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,11 +137,12 @@ public function renderEndUserTemplate(Question|null $question): string
137137
throw new LogicException();
138138
}
139139

140+
$fkey = SafeCommonDBTM::getForeignKeyField(Question::class);
140141
return LdapDropdown::dropdown([
141142
'name' => $question->getEndUserInputName(),
142143
'width' => "100%",
143144
'condition' => [
144-
Question::getForeignKeyField() => $question->getID(),
145+
$fkey => $question->getID(),
145146
],
146147
]);
147148
}

0 commit comments

Comments
 (0)