Skip to content

Commit b26ebfb

Browse files
committed
Fix problem badge for "no contest".
1 parent 487b253 commit b26ebfb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

webapp/src/Twig/TwigExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1081,7 +1081,7 @@ public function problemBadge(ContestProblem $problem): string
10811081
);
10821082
}
10831083

1084-
public function problemBadgeForProblemAndContest(Problem $problem, Contest $contest): string
1084+
public function problemBadgeForProblemAndContest(Problem $problem, ?Contest $contest): string
10851085
{
10861086
foreach ($problem->getContestProblems() as $contestProblem) {
10871087
if ($contestProblem->getContest() === $contest) {

0 commit comments

Comments
 (0)