diff --git a/system/Entity/Entity.php b/system/Entity/Entity.php index 03f6327f8142..482d092912f4 100644 --- a/system/Entity/Entity.php +++ b/system/Entity/Entity.php @@ -27,6 +27,7 @@ use CodeIgniter\I18n\Time; use Exception; use JsonSerializable; +use ReturnTypeWillChange; /** * Entity encapsulation, for use with CodeIgniter\Model @@ -406,8 +407,9 @@ private function castAsJson($value, bool $asArray = false) /** * Support for json_encode() * - * @return array|mixed + * @return array */ + #[ReturnTypeWillChange] public function jsonSerialize() { return $this->toArray();