From bb1a6b2204dd2f44bb2abf2c9f9cd7f929affc43 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/Employee.php | 2 +- Models/EmployeeEducationHistory.php | 2 +- Models/EmployeeHistory.php | 2 +- Models/EmployeeWorkHistory.php | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Models/Employee.php b/Models/Employee.php index ade8615..92f1f3a 100755 --- a/Models/Employee.php +++ b/Models/Employee.php @@ -295,7 +295,7 @@ class Employee implements \JsonSerializable, ArrayableInterface /** * {@inheritdoc} */ - public function jsonSerialize() + public function jsonSerialize() : mixed { return $this->toArray(); } diff --git a/Models/EmployeeEducationHistory.php b/Models/EmployeeEducationHistory.php index e9ac51d..3f6dd14 100755 --- a/Models/EmployeeEducationHistory.php +++ b/Models/EmployeeEducationHistory.php @@ -121,7 +121,7 @@ class EmployeeEducationHistory implements \JsonSerializable, ArrayableInterface /** * {@inheritdoc} */ - public function jsonSerialize() + public function jsonSerialize() : mixed { return $this->toArray(); } diff --git a/Models/EmployeeHistory.php b/Models/EmployeeHistory.php index bfff468..17a8053 100755 --- a/Models/EmployeeHistory.php +++ b/Models/EmployeeHistory.php @@ -144,7 +144,7 @@ class EmployeeHistory implements \JsonSerializable, ArrayableInterface /** * {@inheritdoc} */ - public function jsonSerialize() + public function jsonSerialize() : mixed { return $this->toArray(); } diff --git a/Models/EmployeeWorkHistory.php b/Models/EmployeeWorkHistory.php index 7115a10..6080fb7 100755 --- a/Models/EmployeeWorkHistory.php +++ b/Models/EmployeeWorkHistory.php @@ -115,7 +115,7 @@ class EmployeeWorkHistory implements \JsonSerializable, ArrayableInterface /** * {@inheritdoc} */ - public function jsonSerialize() + public function jsonSerialize() : mixed { return $this->toArray(); }