Skip to content

Commit 1ebe920

Browse files
grnd-altbackportbot[bot]
authored andcommitted
fix: cast boardUsers to string
Signed-off-by: grnd-alt <git@belakkaf.net>
1 parent 2f85c14 commit 1ebe920

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/Service/AssignmentService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ public function assignUser(int $cardId, string $userId, int $type = Assignment::
113113

114114
$card = $this->cardMapper->find($cardId);
115115
$boardId = $this->cardMapper->findBoardId($cardId);
116-
$boardUsers = array_keys($this->permissionService->findUsers($boardId, true));
116+
$boardUsers = array_map(fn (string|int $userId) => (string)$userId, array_keys($this->permissionService->findUsers($boardId, true)));
117117
$acls = $this->aclMapper->findAll($boardId);
118118
$groups = array_filter($acls, function (Acl $acl) use ($userId) {
119119
return $acl->getType() === Acl::PERMISSION_TYPE_GROUP && $acl->getParticipant() === $userId;

0 commit comments

Comments
 (0)