Skip to content

Commit efdab64

Browse files
meisterTcubercsl
authored andcommitted
Fix problem badge for "no contest".
(cherry picked from commit b26ebfb)
1 parent 96822c1 commit efdab64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

webapp/src/Twig/TwigExtension.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1108,7 +1108,7 @@ public function problemBadge(ContestProblem $problem): string
11081108
);
11091109
}
11101110

1111-
public function problemBadgeForProblemAndContest(Problem $problem, Contest $contest): string
1111+
public function problemBadgeForProblemAndContest(Problem $problem, ?Contest $contest): string
11121112
{
11131113
foreach ($problem->getContestProblems() as $contestProblem) {
11141114
if ($contestProblem->getContest() === $contest) {

0 commit comments

Comments
 (0)