Skip to content

Commit

Permalink
Based on dump/reading the code
Browse files Browse the repository at this point in the history
  • Loading branch information
vmcj committed Feb 8, 2024
1 parent 50b86c3 commit 795e7e4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
5 changes: 0 additions & 5 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -325,11 +325,6 @@ parameters:
count: 1
path: webapp/src/Service/ExternalContestSourceService.php

-
message: "#^Method App\\\\Service\\\\ScoreboardService\\:\\:getScoreboardTwigData\\(\\) return type has no value type specified in iterable type array\\.$#"
count: 1
path: webapp/src/Service/ScoreboardService.php

-
message: "#^Method App\\\\Service\\\\StatisticsService\\:\\:getGroupedProblemsStats\\(\\) return type has no value type specified in iterable type array\\.$#"
count: 1
Expand Down
6 changes: 6 additions & 0 deletions webapp/src/Service/ScoreboardService.php
Original file line number Diff line number Diff line change
Expand Up @@ -865,6 +865,12 @@ public function getFilterValues(Contest $contest, bool $jury): array

/**
* Get the scoreboard Twig data for a given contest.
*
* @return array{refresh: array{after: int, url: string, ajax: bool}, static: bool, contest: Contest,
* scoreFilter: Filter, scoreboard: Scoreboard, filterValues: array<string, string[]>,
* groupedAffiliations: null|TeamAffiliation[], showFlags: int, showAffiliationLogos: bool,
* showAffiliations: int, showPending: int, showTeamSubmissions: int, scoreInSeconds: bool,
* maxWidth: int, jury?: bool, public?: bool, ajax?: bool}
*/
public function getScoreboardTwigData(
?Request $request,
Expand Down

0 comments on commit 795e7e4

Please sign in to comment.