feat(files_sharing): allow not deleting expiring shares #49115
Annotations
7 errors
Psalm:
apps/files_sharing/lib/Controller/DeletedShareAPIController.php#L34
apps/files_sharing/lib/Controller/DeletedShareAPIController.php:34:23: UndefinedDocblockClass: Docblock-defined class, interface or enum named OCA\Files_Sharing\Controller\ResponseDefinitions does not exist (see https://psalm.dev/200)
|
Psalm:
apps/files_sharing/lib/Controller/DeletedShareAPIController.php#L74
apps/files_sharing/lib/Controller/DeletedShareAPIController.php:74:13: InvalidReturnType: The declared return type 'OCP\AppFramework\Http\DataResponse<200, array<array-key, type-alias(OCA\Files_Sharing\Controller\ResponseDefinitions::Files_SharingShare)>, array<never, never>>' for OCA\Files_Sharing\Controller\DeletedShareAPIController::index is incorrect, got 'OCP\AppFramework\Http\DataResponse<200, array<array-key, array{'is-mount-root': bool, 'mount-type': string, attributes: null|string, can_delete: bool, can_edit: bool, displayname_file_owner: string, displayname_owner: string, expiration: null|string, file_parent: int, file_source: int, file_target: string, has_preview: bool, hide_download: 0|1, id: string, item_mtime: int, item_permissions?: int, item_size: float|int, item_source: int, item_type: 'file'|'folder', label: null|string, mail_send: 0|1, mimetype: string, note: string, parent: null, password?: null|string, password_expiration_time?: null|string, path: null|string, permissions: int, send_password_by_talk?: bool, share_type: int, share_with?: null|string, share_with_avatar?: string, share_with_displayname?: string, share_with_displayname_unique?: null|string, share_with_link?: string, status?: array{clearAt: int|null, icon: null|string, message: null|string, status: string}, stime: int, storage: int, storage_id: string, token: null|string, uid_file_owner: string, uid_owner: string, url?: string}>, array<never, never>>' (see https://psalm.dev/011)
|
Psalm:
apps/files_sharing/lib/Controller/DeletedShareAPIController.php#L91
apps/files_sharing/lib/Controller/DeletedShareAPIController.php:91:10: InvalidReturnStatement: The inferred type 'OCP\AppFramework\Http\DataResponse<200, array<array-key, array{'is-mount-root': bool, 'mount-type': string, attributes: null|string, can_delete: bool, can_edit: bool, displayname_file_owner: string, displayname_owner: string, expiration: null|string, file_parent: int, file_source: int, file_target: string, has_preview: bool, hide_download: 0|1, id: string, item_mtime: int, item_permissions?: int, item_size: float|int, item_source: int, item_type: 'file'|'folder', label: null|string, mail_send: 0|1, mimetype: string, note: string, parent: null, password?: null|string, password_expiration_time?: null|string, path: null|string, permissions: int, send_password_by_talk?: bool, share_type: int, share_with?: null|string, share_with_avatar?: string, share_with_displayname?: string, share_with_displayname_unique?: null|string, share_with_link?: string, status?: array{clearAt: int|null, icon: null|string, message: null|string, status: string}, stime: int, storage: int, storage_id: string, token: null|string, uid_file_owner: string, uid_owner: string, url?: string}>, array<never, never>>' does not match the declared return type 'OCP\AppFramework\Http\DataResponse<200, array<array-key, type-alias(OCA\Files_Sharing\Controller\ResponseDefinitions::Files_SharingShare)>, array<never, never>>' for OCA\Files_Sharing\Controller\DeletedShareAPIController::index (see https://psalm.dev/128)
|
Psalm:
apps/files_sharing/lib/Controller/ExpiredShareAPIController.php#L30
apps/files_sharing/lib/Controller/ExpiredShareAPIController.php:30:23: UndefinedDocblockClass: Docblock-defined class, interface or enum named OCA\Files_Sharing\Controller\ResponseDefinitions does not exist (see https://psalm.dev/200)
|
Psalm:
apps/files_sharing/lib/Controller/ExpiredShareAPIController.php#L70
apps/files_sharing/lib/Controller/ExpiredShareAPIController.php:70:13: InvalidReturnType: The declared return type 'OCP\AppFramework\Http\DataResponse<200, array<array-key, type-alias(OCA\Files_Sharing\Controller\ResponseDefinitions::Files_SharingShare)>, array<never, never>>' for OCA\Files_Sharing\Controller\ExpiredShareAPIController::index is incorrect, got 'OCP\AppFramework\Http\DataResponse<200, array<array-key, array{'is-mount-root': bool, 'mount-type': string, attributes: null|string, can_delete: bool, can_edit: bool, displayname_file_owner: string, displayname_owner: string, expiration: null|string, file_parent: int, file_source: int, file_target: string, has_preview: bool, hide_download: 0|1, id: string, item_mtime: int, item_permissions?: int, item_size: float|int, item_source: int, item_type: 'file'|'folder', label: null|string, mail_send: 0|1, mimetype: string, note: string, parent: null, password?: null|string, password_expiration_time?: null|string, path: null|string, permissions: int, send_password_by_talk?: bool, share_type: int, share_with?: null|string, share_with_avatar?: string, share_with_displayname?: string, share_with_displayname_unique?: null|string, share_with_link?: string, status?: array{clearAt: int|null, icon: null|string, message: null|string, status: string}, stime: int, storage: int, storage_id: string, token: null|string, uid_file_owner: string, uid_owner: string, url?: string}>, array<never, never>>' (see https://psalm.dev/011)
|
Psalm:
apps/files_sharing/lib/Controller/ExpiredShareAPIController.php#L92
apps/files_sharing/lib/Controller/ExpiredShareAPIController.php:92:10: InvalidReturnStatement: The inferred type 'OCP\AppFramework\Http\DataResponse<200, array<array-key, array{'is-mount-root': bool, 'mount-type': string, attributes: null|string, can_delete: bool, can_edit: bool, displayname_file_owner: string, displayname_owner: string, expiration: null|string, file_parent: int, file_source: int, file_target: string, has_preview: bool, hide_download: 0|1, id: string, item_mtime: int, item_permissions?: int, item_size: float|int, item_source: int, item_type: 'file'|'folder', label: null|string, mail_send: 0|1, mimetype: string, note: string, parent: null, password?: null|string, password_expiration_time?: null|string, path: null|string, permissions: int, send_password_by_talk?: bool, share_type: int, share_with?: null|string, share_with_avatar?: string, share_with_displayname?: string, share_with_displayname_unique?: null|string, share_with_link?: string, status?: array{clearAt: int|null, icon: null|string, message: null|string, status: string}, stime: int, storage: int, storage_id: string, token: null|string, uid_file_owner: string, uid_owner: string, url?: string}>, array<never, never>>' does not match the declared return type 'OCP\AppFramework\Http\DataResponse<200, array<array-key, type-alias(OCA\Files_Sharing\Controller\ResponseDefinitions::Files_SharingShare)>, array<never, never>>' for OCA\Files_Sharing\Controller\ExpiredShareAPIController::index (see https://psalm.dev/128)
|
Psalm
Process completed with exit code 2.
|
Loading