diff options
author | Lucas Azevedo <lhs_azevedo@hotmail.com> | 2023-08-24 00:10:30 -0300 |
---|---|---|
committer | Lucas Azevedo <lhs_azevedo@hotmail.com> | 2023-08-24 00:11:59 -0300 |
commit | 7d05d1f604ad10b6bd2065299a983f7b2c514cd6 (patch) | |
tree | cedecb3f1e36c582bbdb145e6926ed3b17b0f551 /core | |
parent | 651044ce178fffcbe12ef124c27c37322a829d73 (diff) | |
download | nextcloud-server-7d05d1f604ad10b6bd2065299a983f7b2c514cd6.tar.gz nextcloud-server-7d05d1f604ad10b6bd2065299a983f7b2c514cd6.zip |
Add missing return types
Signed-off-by: Lucas Azevedo <lhs_azevedo@hotmail.com>
Diffstat (limited to 'core')
-rw-r--r-- | core/Command/User/AuthTokens.php | 4 | ||||
-rw-r--r-- | core/Command/User/DeleteAuthToken.php | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/core/Command/User/AuthTokens.php b/core/Command/User/AuthTokens.php index 938efd952a5..0555cdfeab3 100644 --- a/core/Command/User/AuthTokens.php +++ b/core/Command/User/AuthTokens.php @@ -38,7 +38,7 @@ class AuthTokens extends Base { parent::__construct(); } - protected function configure() { + protected function configure(): void { parent::configure(); $this @@ -61,7 +61,7 @@ class AuthTokens extends Base { $tokens = $this->tokenProvider->getTokenByUser($user->getUID()); - $data = array_map(fn (IToken $token) => $token->jsonSerialize(), $tokens); + $data = array_map(fn (IToken $token): mixed => $token->jsonSerialize(), $tokens); $this->writeArrayInOutputFormat($input, $output, $data); diff --git a/core/Command/User/DeleteAuthToken.php b/core/Command/User/DeleteAuthToken.php index eb31efbf05e..13b63242b79 100644 --- a/core/Command/User/DeleteAuthToken.php +++ b/core/Command/User/DeleteAuthToken.php @@ -35,7 +35,7 @@ class DeleteAuthToken extends Base { parent::__construct(); } - protected function configure() { + protected function configure(): void { $this ->setName('user:delete-auth-token') ->setDescription('Deletes an authentication token') |