summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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')