We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c28c3c commit ef574dfCopy full SHA for ef574df
lib/Controller/HarpController.php
@@ -107,7 +107,7 @@ protected function isUserEnabled(string $userId): bool {
107
* 0: PUBLIC
108
* 1: USER
109
* 2: ADMIN
110
- * @return DataResponse { user_id: string|null, access_level: int }
+ * @return DataResponse array{ user_id: string, access_level: int }
111
*/
112
#[PublicPage]
113
#[NoCSRFRequired]
@@ -119,7 +119,7 @@ public function getUserInfo(): DataResponse {
119
if ($this->userId === null) {
120
$this->logger->debug('No user found in the harp request');
121
return new DataResponse([
122
- 'user_id' => null,
+ 'user_id' => '',
123
'access_level' => ExAppRouteAccessLevel::PUBLIC->value,
124
]);
125
}
0 commit comments