Skip to content

Commit f562e3d

Browse files
committed
fix: cast boardUsers to string
Signed-off-by: grnd-alt <git@belakkaf.net>
1 parent a96408e commit f562e3d

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
@@ -62,7 +62,7 @@ public function assignUser(int $cardId, string $userId, int $type = Assignment::
6262

6363
$card = $this->cardMapper->find($cardId);
6464
$boardId = $this->cardMapper->findBoardId($cardId);
65-
$boardUsers = array_keys($this->permissionService->findUsers($boardId, true));
65+
$boardUsers = array_map(fn (string|int $userId) => (string)$userId, array_keys($this->permissionService->findUsers($boardId, true)));
6666
$acls = $this->aclMapper->findAll($boardId);
6767
$groups = array_filter($acls, function (Acl $acl) use ($userId) {
6868
return $acl->getType() === Acl::PERMISSION_TYPE_GROUP && $acl->getParticipant() === $userId;

0 commit comments

Comments
 (0)