This commit is contained in:
2026-03-13 22:37:01 +01:00
parent 1370f61dc3
commit a66b81fe58
15 changed files with 447 additions and 348 deletions
+1 -4
View File
@@ -110,9 +110,7 @@ class Quiz
return $errors;
}
/**
* @param list<Candidate> $activeCandidates
*/
/** @param list<Candidate> $activeCandidates */
private function getQuestionError(Question $question, bool $hasCandidateRelations, array $activeCandidates): ?string
{
if (0 === \count($question->answers)) {
@@ -131,7 +129,6 @@ class Quiz
// Only validate candidate-answer relations if at least one exists in the quiz
if ($hasCandidateRelations) {
$candidateCounts = [];
// Count how many times each candidate appears in answers