feat(conversations): add option to force passwords #21335
Annotations
3 errors
Run coding standards check:
lib/Controller/RoomController.php#L653
lib/Controller/RoomController.php:653:13: InvalidReturnType: The declared return type 'OCP\AppFramework\Http\DataResponse<201|400|404, array{actorId?: string, actorType?: string, attendeeId?: int, attendeePermissions?: int, attendeePin?: null|string, avatarVersion?: string, breakoutRoomMode?: int, breakoutRoomStatus?: int, callFlag?: int, callPermissions?: int, callRecording?: int, callStartTime?: int, canDeleteConversation?: bool, canEnableSIP?: bool, canLeaveConversation?: bool, canStartCall?: bool, defaultPermissions?: int, description?: string, displayName?: string, error?: string, hasCall?: bool, hasPassword?: bool, id?: int, invitedActorId?: string, isArchived?: bool, isCustomAvatar?: bool, isFavorite?: bool, lastActivity?: int, lastCommonReadMessage?: int, lastMessage?: array{actorDisplayName?: string, actorId?: string, actorType?: string, deleted?: true, expirationTimestamp?: int, id?: int, isReplyable?: bool, lastEditActorDisplayName?: string, lastEditActorId?: string, lastEditActorType?: string, lastEditTimestamp?: int, markdown?: bool, message?: string, messageParameters?: array<string, array{'call-type'?: 'group'|'one2one'|'public', 'icon-url'?: string, 'message-id'?: string, 'preview-available'?: 'no'|'yes', assignable?: '0'|'1', blurhash?: string, boardname?: string, conversation?: string, description?: string, etag?: string, height?: string, id: string, latitude?: string, link?: string, longitude?: string, mimetype?: string, mtime?: string, name: string, path?: string, permissions?: string, server?: string, size?: string, stackname?: string, thumb?: string, type: string, visibility?: '0'|'1', website?: string, width?: string}>, messageType?: string, reactions?: array<string, int>|stdClass, reactionsSelf?: array<array-key, string>, referenceId?: string, silent?: bool, systemMessage?: string, timestamp?: int, token?: string}, lastPing?: int, lastReadMessage?: int, listable?: int, lobbyState?: int, lobbyTimer?: int, mentionPermissions?: int, messageExpiration?: int, name?: string, notificationCalls?: int, notificationLevel?: int, objectId?: string, objectType?: string, participantFlags?: int, participantType?: int, permissions?: int, readOnly?: int, recordingConsent?: int, remoteServer?: string, remoteToken?: string, sessionId?: string, sipEnabled?: int, status?: string, statusClearAt?: int|null, statusIcon?: null|string, statusMessage?: null|string, token?: string, type?: int, unreadMention?: bool, unreadMentionDirect?: bool, unreadMessages?: int}, array<never, never>>' for OCA\Talk\Controller\RoomController::createEmptyRoom is incorrect, got 'OCP\AppFramework\Http\DataResponse<201|400|403|404, array{actorId?: string, actorType?: string, attendeeId?: int, attendeePermissions?: int, attendeePin?: null|string, avatarVersion?: string, breakoutRoomMode?: int, breakoutRoomStatus?: int, callFlag?: int, callPermissions?: int, callRecording?: int, callStartTime?: int, canDeleteConversation?: bool, canEnableSIP?: bool, canLeaveConversation?: bool, canStartCall?: bool, defaultPermissions?: int, description?: string, displayName?: string, error?: 'mode'|'object'|'permissions'|'room', hasCall?: bool, hasPassword?: bool, hint?: string, id?: int, invitedActorId?: string, isArchived?: bool, isCustomAvatar?: bool, isFavorite?: bool, lastActivity?: int, lastCommonReadMessage?: int, lastMessage?: array{actorDisplayName?: string, actorId?: string, actorType?: string, deleted?: true, expirationTimestamp?: int, id?: int, isReplyable?: bool, lastEditActorDisplayName?: string, lastEditActorId?: string, lastEditActorType?: string, lastEditTimestamp?: int, markdown?: bool, message?: string, messageParameters?: array<string, array{'call-type'?: 'group'|'one2one'|'public', 'icon-url'?: string, 'message-id'?: string, 'preview-available'?: 'no'|'yes', assignable?: '0'|'1', blurhash?: string, boardname?: string, conversation?: string, description?: string, etag?: string, height?: string, id: string, latitude?: string, link?: string, longitude?: string, mimetype?: string, mtime?: string, name: string, path?: string, permissions?: string,
|
Run coding standards check:
lib/Controller/RoomController.php#L696
lib/Controller/RoomController.php:696:11: InvalidReturnStatement: The inferred type 'OCP\AppFramework\Http\DataResponse<403, array{hint: string, reason: 'breakout-room'|'type'|'value'}, array<never, never>>' does not match the declared return type 'OCP\AppFramework\Http\DataResponse<201|400|404, array{actorId?: string, actorType?: string, attendeeId?: int, attendeePermissions?: int, attendeePin?: null|string, avatarVersion?: string, breakoutRoomMode?: int, breakoutRoomStatus?: int, callFlag?: int, callPermissions?: int, callRecording?: int, callStartTime?: int, canDeleteConversation?: bool, canEnableSIP?: bool, canLeaveConversation?: bool, canStartCall?: bool, defaultPermissions?: int, description?: string, displayName?: string, error?: string, hasCall?: bool, hasPassword?: bool, id?: int, invitedActorId?: string, isArchived?: bool, isCustomAvatar?: bool, isFavorite?: bool, lastActivity?: int, lastCommonReadMessage?: int, lastMessage?: array{actorDisplayName?: string, actorId?: string, actorType?: string, deleted?: true, expirationTimestamp?: int, id?: int, isReplyable?: bool, lastEditActorDisplayName?: string, lastEditActorId?: string, lastEditActorType?: string, lastEditTimestamp?: int, markdown?: bool, message?: string, messageParameters?: array<string, array{'call-type'?: 'group'|'one2one'|'public', 'icon-url'?: string, 'message-id'?: string, 'preview-available'?: 'no'|'yes', assignable?: '0'|'1', blurhash?: string, boardname?: string, conversation?: string, description?: string, etag?: string, height?: string, id: string, latitude?: string, link?: string, longitude?: string, mimetype?: string, mtime?: string, name: string, path?: string, permissions?: string, server?: string, size?: string, stackname?: string, thumb?: string, type: string, visibility?: '0'|'1', website?: string, width?: string}>, messageType?: string, reactions?: array<string, int>|stdClass, reactionsSelf?: array<array-key, string>, referenceId?: string, silent?: bool, systemMessage?: string, timestamp?: int, token?: string}, lastPing?: int, lastReadMessage?: int, listable?: int, lobbyState?: int, lobbyTimer?: int, mentionPermissions?: int, messageExpiration?: int, name?: string, notificationCalls?: int, notificationLevel?: int, objectId?: string, objectType?: string, participantFlags?: int, participantType?: int, permissions?: int, readOnly?: int, recordingConsent?: int, remoteServer?: string, remoteToken?: string, sessionId?: string, sipEnabled?: int, status?: string, statusClearAt?: int|null, statusIcon?: null|string, statusMessage?: null|string, token?: string, type?: int, unreadMention?: bool, unreadMentionDirect?: bool, unreadMessages?: int}, array<never, never>>' for OCA\Talk\Controller\RoomController::createEmptyRoom (see https://psalm.dev/128)
|
Run coding standards check
Process completed with exit code 2.
|
Loading