diff options
author | Vitor Mattos <vitor@php.rio> | 2021-10-05 20:31:59 +0300 |
---|---|---|
committer | Vitor Mattos <vitor@php.rio> | 2021-10-07 16:26:56 +0300 |
commit | a2e57ab980a419d0f40cf4540b5387d40e65f51a (patch) | |
tree | 74be5f60e0ca09a5c395db8b64eb414a8f964a5a /lib/Service | |
parent | 251d68513b7a7d932592edb314581ad2a443de63 (diff) |
Changes after run --alter
psalm --alter --issues=MissingClosureReturnType,MismatchingDocblockReturnType,MissingReturnType,InvalidReturnType,MissingParamType
Signed-off-by: Vitor Mattos <vitor@php.rio>
Diffstat (limited to 'lib/Service')
-rw-r--r-- | lib/Service/HostedSignalingServerService.php | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/Service/HostedSignalingServerService.php b/lib/Service/HostedSignalingServerService.php index efb88cef5..83987ecd7 100644 --- a/lib/Service/HostedSignalingServerService.php +++ b/lib/Service/HostedSignalingServerService.php @@ -246,8 +246,12 @@ class HostedSignalingServerService { /** * @throws HostedSignalingServerAPIException + * + * @return (\ArrayAccess|array|mixed)[]|\ArrayAccess + * + * @psalm-return list<created: mixed, owner: <array>, status: mixed, signaling: <array>> */ - public function fetchAccountInfo(AccountId $accountId): array { + public function fetchAccountInfo(AccountId $accountId) { try { $nonce = $this->secureRandom->generate(32); $this->config->setAppValue('spreed', 'hosted-signaling-server-nonce', $nonce); @@ -400,8 +404,10 @@ class HostedSignalingServerService { /** * @throws HostedSignalingServerAPIException + * + * @return void */ - public function deleteAccount(AccountId $accountId) { + public function deleteAccount(AccountId $accountId): void { try { $nonce = $this->secureRandom->generate(32); $this->config->setAppValue('spreed', 'hosted-signaling-server-nonce', $nonce); |