Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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‎

Lines changed: 1 addition & 1 deletion
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)

AltStyle によって変換されたページ (->オリジナル) /