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/public/DirectEditing/ATemplate.php | |
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/public/DirectEditing/ATemplate.php')
-rw-r--r-- | lib/public/DirectEditing/ATemplate.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/public/DirectEditing/ATemplate.php b/lib/public/DirectEditing/ATemplate.php index c38fc898dab..53aff0d40ff 100644 --- a/lib/public/DirectEditing/ATemplate.php +++ b/lib/public/DirectEditing/ATemplate.php @@ -57,9 +57,8 @@ abstract class ATemplate implements JsonSerializable { /** * @since 18.0.0 - * @return array|mixed */ - public function jsonSerialize() { + public function jsonSerialize(): array { return [ 'id' => $this->getId(), 'title' => $this->getTitle(), |