We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 96822c1 commit efdab64Copy full SHA for efdab64
webapp/src/Twig/TwigExtension.php
@@ -1108,7 +1108,7 @@ public function problemBadge(ContestProblem $problem): string
1108
);
1109
}
1110
1111
- public function problemBadgeForProblemAndContest(Problem $problem, Contest $contest): string
+ public function problemBadgeForProblemAndContest(Problem $problem, ?Contest $contest): string
1112
{
1113
foreach ($problem->getContestProblems() as $contestProblem) {
1114
if ($contestProblem->getContest() === $contest) {
0 commit comments