diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2021-10-19 17:11:53 +0200 |
---|---|---|
committer | Côme Chilliet <come.chilliet@nextcloud.com> | 2021-11-23 09:28:56 +0100 |
commit | 113756db30fcbffe9e90b54c29e78dee0676109f (patch) | |
tree | 8eeaad5ea33957cd2c9ef37dbb05c5e779c48216 /lib/private/Authentication | |
parent | 129de6079e53e0ac9dbf9d7c25ec1670ae0ff572 (diff) | |
download | nextcloud-server-113756db30fcbffe9e90b54c29e78dee0676109f.tar.gz nextcloud-server-113756db30fcbffe9e90b54c29e78dee0676109f.zip |
Fix ArrayAccess and JsonSerializable return types
First round of modifications for PHP 8.1
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'lib/private/Authentication')
-rw-r--r-- | lib/private/Authentication/Token/DefaultToken.php | 2 | ||||
-rw-r--r-- | lib/private/Authentication/Token/PublicKeyToken.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/Authentication/Token/DefaultToken.php b/lib/private/Authentication/Token/DefaultToken.php index 5a008586a90..b649fdbb6af 100644 --- a/lib/private/Authentication/Token/DefaultToken.php +++ b/lib/private/Authentication/Token/DefaultToken.php @@ -121,7 +121,7 @@ class DefaultToken extends Entity implements INamedToken { return parent::getPassword(); } - public function jsonSerialize() { + public function jsonSerialize(): array { return [ 'id' => $this->id, 'name' => $this->name, diff --git a/lib/private/Authentication/Token/PublicKeyToken.php b/lib/private/Authentication/Token/PublicKeyToken.php index 3351c767ce3..d060fe14103 100644 --- a/lib/private/Authentication/Token/PublicKeyToken.php +++ b/lib/private/Authentication/Token/PublicKeyToken.php @@ -138,7 +138,7 @@ class PublicKeyToken extends Entity implements INamedToken, IWipeableToken { return parent::getPassword(); } - public function jsonSerialize() { + public function jsonSerialize(): array { return [ 'id' => $this->id, 'name' => $this->name, |