Skip to content

Commit

Permalink
fix(docs): Adjust capabilities documentation to current state
Browse files Browse the repository at this point in the history
Signed-off-by: Joas Schilling <coding@schilljs.com>
  • Loading branch information
nickvergessen committed Oct 5, 2023
1 parent d7acd8c commit f632c63
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 34 deletions.
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"cs:fix": "php-cs-fixer fix",
"lint": "find . -name \\*.php -not -path './vendor/*' -not -path './vendor-bin/*' -not -path './lib/Vendor/*' -not -path './build/*' -not -path './tests/integration/vendor/*' -print0 | xargs -0 -n1 php -l",
"psalm": "psalm --threads=1",
"psalm:dev": "psalm --no-cache --threads=$(nproc)",
"psalm:update-baseline": "psalm --threads=1 --update-baseline --set-baseline=tests/psalm-baseline.xml",
"psalm:clear": "psalm --clear-cache && psalm --clear-global-cache",
"psalm:fix": "psalm --alter --issues=InvalidReturnType,InvalidNullableReturnType,MissingParamType,InvalidFalsableReturnType",
Expand Down
68 changes: 34 additions & 34 deletions lib/Capabilities.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,40 +55,40 @@ public function __construct(

/**
* @return array{
* spreed: array{
* features: string[],
* config: array{
* attachments: array{
* allowed: bool,
* folder?: string,
* },
* call: array{
* enabled: bool,
* breakout-rooms: bool,
* recording: bool,
* supported-reactions: string[],
* predefined-backgrounds?: string[],
* can-upload-background?: bool,
* },
* chat: array{
* max-length: int,
* read-privacy: int,
* translations: string,
* typing-privacy: int,
* },
* conversations: array{
* can-create: bool,
* },
* previews: array{
* max-gif-size: int,
* },
* signaling: array{
* session-ping-limit: int,
* hello-v2-token-key?: string,
* },
* },
* version: string,
* },
* spreed: array{
* features: string[],
* config: array{
* attachments: array{
* allowed: bool,
* folder?: string,
* },
* call: array{
* enabled: bool,
* breakout-rooms: bool,
* recording: bool,
* supported-reactions: string[],
* predefined-backgrounds: string[],
* can-upload-background: bool,
* },
* chat: array{
* max-length: int,
* read-privacy: int,
* has-translation-providers: bool,
* typing-privacy: int,
* },
* conversations: array{
* can-create: bool,
* },
* previews: array{
* max-gif-size: int,
* },
* signaling: array{
* session-ping-limit: int,
* hello-v2-token-key?: string,
* },
* },
* version: string,
* },
* }|array<empty>
*/
public function getCapabilities(): array {
Expand Down

0 comments on commit f632c63

Please sign in to comment.