Skip to content

Commit ec29b73

Browse files
authored
fix: Cast to string
Signed-off-by: Git'Fellow <[email protected]>
1 parent 5829dcb commit ec29b73

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/private/Teams/TeamManager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ public function getSharedWithList(array $teams, string $userId): array {
9696
} else {
9797
foreach ($teams as $team) {
9898
// Handle both Team objects and string IDs
99-
$teamId = $team instanceof Team ? $team->getId() : $team;
99+
$teamId = (string) ($team instanceof Team ? $team->getId() : $team);
100100
$resources[] = [$teamId => $provider->getSharedWith($teamId)];
101101
}
102102
}

0 commit comments

Comments
 (0)