mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/OATHAuth
synced 2024-11-24 00:05:24 +00:00
TOTPKey: Apply array return type to jsonSerialize()
Bug: T311673 Change-Id: Ibeeda6e873d1b025a7c43b2f43cf547f981a1692
This commit is contained in:
parent
f6366908de
commit
4f82fe9bc8
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue