Skip to content

Commit 83f264a

Browse files
committed
fix(psalm): Fix return type of TokenService::getTokens
Signed-off-by: Carl Schwan <[email protected]>
1 parent 70b1a86 commit 83f264a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

apps/webhook_listeners/lib/Service/TokenService.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,11 @@ public function __construct(
6565
*
6666
* @param WebhookListener $webhookListener
6767
* @param ?string $triggerUserId the user that triggered the webhook call
68-
* @return array{user_ids?:array<string,string>,user_roles?:array{owner?:array<string,string>,trigger?:array<string,string>}}
68+
* @return array{
69+
* user_ids?: array<string, array{baseUrl: string, token: string, userId: mixed}>,
70+
* trigger?: array{baseUrl: string, token: string, userId: string},
71+
* owner?: array{baseUrl: string, token: string, userId: string},
72+
* }
6973
*/
7074
public function getTokens(WebhookListener $webhookListener, ?string $triggerUserId): array {
7175
$tokens = [];

0 commit comments

Comments
 (0)