Add missing return types

Signed-off-by: Lucas Azevedo <lhs_azevedo@hotmail.com>
This commit is contained in:
Lucas Azevedo 2023-08-24 00:10:30 -03:00
parent 651044ce17
commit 7d05d1f604
2 changed files with 3 additions and 3 deletions

View file

@ -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);

View file

@ -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')