Skip to content

Commit

Permalink
fix(openapi): Fix empty capabilities
Browse files Browse the repository at this point in the history
Signed-off-by: Joas Schilling <[email protected]>
  • Loading branch information
nickvergessen committed Nov 20, 2024
1 parent 6805e28 commit b6da571
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Capabilities.php
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ public function __construct(
/**
* @return array{

Check failure on line 185 in lib/Capabilities.php

View workflow job for this annotation

GitHub Actions / static-psalm-analysis

ImplementedReturnTypeMismatch

lib/Capabilities.php:185:13: ImplementedReturnTypeMismatch: The inherited return type 'array<string, array<string, mixed>>' for OCP\Capabilities\ICapability::getCapabilities is different to the implemented return type for OCA\Talk\Capabilities::getcapabilities 'array{0?: never, spreed?: array{'config-local': array<string, list<string>>, 'features-local': list<string>, config: array{attachments: array{allowed: bool, folder?: string}, call: array{'blur-virtual-background': bool, 'breakout-rooms': bool, 'can-enable-sip': bool, 'can-upload-background': bool, 'max-duration': int, 'predefined-backgrounds': list<string>, 'recording-consent': int, 'sip-dialout-enabled': bool, 'sip-enabled': bool, 'start-without-media': bool, 'supported-reactions': list<string>, enabled: bool, recording: bool}, chat: array{'has-translation-providers': bool, 'max-length': int, 'read-privacy': int, 'summary-threshold': int<1, max>, 'typing-privacy': int}, conversations: array{'can-create': bool}, federation: array{'incoming-enabled': bool, 'only-trusted-servers': bool, 'outgoing-enabled': bool, enabled: bool}, previews: array{'max-gif-size': int}, signaling: array{'hello-v2-token-key'?: string, 'session-ping-limit': int}}, features: list<string>, version: string}, ...<int<0, max>, never>}' (see https://psalm.dev/123)
* spreed: TalkCapabilities,
* }|array<empty>
* }|list<empty>
*/
public function getCapabilities(): array {
$user = $this->userSession->getUser();
Expand Down

0 comments on commit b6da571

Please sign in to comment.