From 9926e5cd0887aefef75f7746b4b227fd4220fad1 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Tue, 22 Mar 2022 17:34:58 +0100 Subject: [PATCH] fixed php 8.1 type bugs --- Models/Contract.php | 2 +- Models/ContractType.php | 2 +- Models/ContractTypeL11n.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Models/Contract.php b/Models/Contract.php index dd203d1..c48788d 100755 --- a/Models/Contract.php +++ b/Models/Contract.php @@ -158,7 +158,7 @@ class Contract /** * {@inheritdoc} */ - public function jsonSerialize() + public function jsonSerialize() : mixed { return $this->toArray(); } diff --git a/Models/ContractType.php b/Models/ContractType.php index a3ffad1..b9e2d83 100755 --- a/Models/ContractType.php +++ b/Models/ContractType.php @@ -113,7 +113,7 @@ class ContractType implements \JsonSerializable, ArrayableInterface /** * {@inheritdoc} */ - public function jsonSerialize() + public function jsonSerialize() : mixed { return $this->toArray(); } diff --git a/Models/ContractTypeL11n.php b/Models/ContractTypeL11n.php index 12b6337..2ab8b48 100755 --- a/Models/ContractTypeL11n.php +++ b/Models/ContractTypeL11n.php @@ -129,7 +129,7 @@ class ContractTypeL11n implements \JsonSerializable, ArrayableInterface /** * {@inheritdoc} */ - public function jsonSerialize() + public function jsonSerialize() : mixed { return $this->toArray(); }