Skip to content

Commit

Permalink
Add some more forgotten return types.
Browse files Browse the repository at this point in the history
  • Loading branch information
nickygerritsen committed Jan 19, 2024
1 parent c21763f commit 8439b6c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 20 deletions.
20 changes: 0 additions & 20 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,6 @@ parameters:
count: 1
path: webapp/src/Controller/API/AbstractRestController.php

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

-
message: "#^Method App\\\\Controller\\\\API\\\\GeneralInfoController\\:\\:addProblemAction\\(\\) return type has no value type specified in iterable type array\\.$#"
count: 1
Expand All @@ -40,31 +35,16 @@ parameters:
count: 1
path: webapp/src/Controller/API/JudgehostController.php

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

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

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

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

-
message: "#^Method App\\\\Controller\\\\API\\\\JudgementTypeController\\:\\:getJudgementTypes\\(\\) has parameter \\$filteredOn with no value type specified in iterable type array\\.$#"
count: 1
path: webapp/src/Controller/API/JudgementTypeController.php

-
message: "#^Method App\\\\Controller\\\\API\\\\ProblemController\\:\\:addProblemAction\\(\\) return type has no value type specified in iterable type array\\.$#"
count: 1
Expand Down
1 change: 1 addition & 0 deletions webapp/src/Controller/API/BalloonController.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ class BalloonController extends AbstractRestController
* Get all the balloons for this contest.
*
* @throws NonUniqueResultException
* @return Balloon[]
*/
#[Rest\Get('')]
#[OA\Response(
Expand Down
3 changes: 3 additions & 0 deletions webapp/src/Controller/API/JudgehostController.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ public function __construct(

/**
* Get judgehosts.
*
* @return Judgehost[]
*/
#[IsGranted('ROLE_JURY')]
#[Rest\Get('')]
Expand Down Expand Up @@ -1636,6 +1638,7 @@ public function getJudgeTasksAction(Request $request): array

/**
* @param JudgeTask[] $judgeTasks
* @return JudgeTask[]
* @throws Exception
*/
private function serializeJudgeTasks(array $judgeTasks, Judgehost $judgehost): array
Expand Down
2 changes: 2 additions & 0 deletions webapp/src/Controller/API/JudgementTypeController.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ public function singleAction(Request $request, string $id): JudgementType
/**
* Get the judgement types, optionally filtered on the given IDs.
*
* @param string[]|null $filteredOn
*
* @return JudgementType[]
*/
protected function getJudgementTypes(array $filteredOn = null): array
Expand Down

0 comments on commit 8439b6c

Please sign in to comment.