From 4f82fe9bc830b4e601c6d0995119cd59944745d6 Mon Sep 17 00:00:00 2001 From: Reedy Date: Thu, 30 Jun 2022 00:46:26 +0100 Subject: [PATCH] TOTPKey: Apply array return type to jsonSerialize() Bug: T311673 Change-Id: Ibeeda6e873d1b025a7c43b2f43cf547f981a1692 --- src/Key/TOTPKey.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Key/TOTPKey.php b/src/Key/TOTPKey.php index e26f351d..e9360e70 100644 --- a/src/Key/TOTPKey.php +++ b/src/Key/TOTPKey.php @@ -255,7 +255,7 @@ class TOTPKey implements IAuthKey { return LoggerFactory::getInstance( 'authentication' ); } - public function jsonSerialize() { + public function jsonSerialize(): array { return [ 'secret' => $this->getSecret(), 'scratch_tokens' => $this->getScratchTokens()