TOTPKey: Apply array return type to jsonSerialize()

Bug: T311673
Change-Id: Ibeeda6e873d1b025a7c43b2f43cf547f981a1692
This commit is contained in:
Reedy 2022-06-30 00:46:26 +01:00
parent f6366908de
commit 4f82fe9bc8

View file

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