Skip to content

Commit 7e96942

Browse files
Add return phpdocs to general info controller.
1 parent 10a0024 commit 7e96942

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

phpstan-baseline.neon

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,5 @@
11
parameters:
22
ignoreErrors:
3-
-
4-
message: "#^Method App\\\\Controller\\\\API\\\\GeneralInfoController\\:\\:getDatabaseConfigurationAction\\(\\) return type has no value type specified in iterable type array\\.$#"
5-
count: 1
6-
path: webapp/src/Controller/API/GeneralInfoController.php
7-
8-
-
9-
message: "#^Method App\\\\Controller\\\\API\\\\GeneralInfoController\\:\\:updateConfigurationAction\\(\\) return type has no value type specified in iterable type array\\.$#"
10-
count: 1
11-
path: webapp/src/Controller/API/GeneralInfoController.php
12-
133
-
144
message: "#^Method App\\\\Controller\\\\API\\\\JudgehostController\\:\\:checkVersions\\(\\) return type has no value type specified in iterable type array\\.$#"
155
count: 1

webapp/src/Controller/API/GeneralInfoController.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,8 @@ public function getUserAction(): User
163163

164164
/**
165165
* Get configuration variables.
166+
*
167+
* @return array<string, bool|int|string|array<string, string>>
166168
*/
167169
#[Rest\Get('/config')]
168170
#[OA\Response(
@@ -202,6 +204,8 @@ public function getDatabaseConfigurationAction(
202204

203205
/**
204206
* Update configuration variables.
207+
* @return JsonResponse|array<string, bool|int|array<string, string>|string>
208+
*
205209
* @throws NonUniqueResultException
206210
*/
207211
#[IsGranted('ROLE_ADMIN')]

0 commit comments

Comments
 (0)