summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorLucas Azevedo <lhs_azevedo@hotmail.com>2023-08-24 00:10:30 -0300
committerLucas Azevedo <lhs_azevedo@hotmail.com>2023-08-24 00:11:59 -0300
commit7d05d1f604ad10b6bd2065299a983f7b2c514cd6 (patch)
treecedecb3f1e36c582bbdb145e6926ed3b17b0f551 /core
parent651044ce178fffcbe12ef124c27c37322a829d73 (diff)
downloadnextcloud-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.php4
-rw-r--r--core/Command/User/DeleteAuthToken.php2
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')