From 7d05d1f604ad10b6bd2065299a983f7b2c514cd6 Mon Sep 17 00:00:00 2001 From: Lucas Azevedo Date: Thu, 24 Aug 2023 00:10:30 -0300 Subject: Add missing return types Signed-off-by: Lucas Azevedo --- core/Command/User/AuthTokens.php | 4 ++-- core/Command/User/DeleteAuthToken.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'core') 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') -- cgit v1.2.3