@@ -159,7 +159,7 @@ public function getAllFoldersWithSize(int $offset = 0, ?int $limit = null, strin
159159 /** @var list<array{folder_id: int, mount_point: string, quota: int, acl: bool, acl_default_no_permission: bool, storage_id: int, root_id: int, options: string}> $rows */
160160 $ rows = $ query ->executeQuery ()->fetchAll ();
161161
162- $ folderIds = array_map (static fn (array $ row ): int => ( int ) $ row ['folder_id ' ], $ rows );
162+ $ folderIds = array_map (static fn (array $ row ): int => $ row ['folder_id ' ], $ rows );
163163 $ applicableMap = $ this ->getAllApplicable ($ folderIds );
164164 $ folderMappings = $ this ->getAllFolderMappings ($ folderIds );
165165
@@ -200,7 +200,7 @@ public function getAllFoldersForUserWithSize(IUser $user): array {
200200 /** @var list<array{folder_id: int, mount_point: string, quota: int, acl: bool, acl_default_no_permission: bool, storage_id: int, root_id: int, options: string}> $rows */
201201 $ rows = $ query ->executeQuery ()->fetchAll ();
202202
203- $ folderIds = array_map (static fn (array $ row ): int => ( int ) $ row ['folder_id ' ], $ rows );
203+ $ folderIds = array_map (static fn (array $ row ): int => $ row ['folder_id ' ], $ rows );
204204 $ applicableMap = $ this ->getAllApplicable ($ folderIds );
205205 $ folderMappings = $ this ->getAllFolderMappings ($ folderIds );
206206
@@ -544,7 +544,7 @@ public function searchGroups(int $id, string $search = ''): array {
544544 return $ groups ;
545545 }
546546
547- return array_values (array_filter ($ groups , fn (array $ group ): bool => (stripos ($ group ['gid ' ], $ search ) !== false ) || (stripos ($ group ['displayname ' ], $ search ) !== false )));
547+ return array_values (array_filter ($ groups , fn (array $ group ): bool => (stripos (( string ) $ group ['gid ' ], $ search ) !== false ) || (stripos (( string ) $ group ['displayname ' ], $ search ) !== false )));
548548 }
549549
550550 /**
@@ -557,7 +557,7 @@ public function searchCircles(int $id, string $search = ''): array {
557557 return $ circles ;
558558 }
559559
560- return array_values (array_filter ($ circles , fn (array $ circle ): bool => (stripos ($ circle ['displayname ' ], $ search ) !== false )));
560+ return array_values (array_filter ($ circles , fn (array $ circle ): bool => (stripos (( string ) $ circle ['displayname ' ], $ search ) !== false )));
561561 }
562562
563563 /**
@@ -700,7 +700,7 @@ public function getFoldersForGroups(array $groupIds, ?int $folderId = null, ?arr
700700 return FolderDefinitionWithPermissions::fromFolder (
701701 $ folder ,
702702 Cache::cacheEntryFromData ($ row , $ this ->mimeTypeLoader ),
703- ( int ) $ row ['group_permissions ' ]
703+ $ row ['group_permissions ' ]
704704 );
705705 }, $ result );
706706 }
0 commit comments