From 84582220fd2f68b7bdb3ae8d1a55073dc58a8aed Mon Sep 17 00:00:00 2001 From: Tobia Zanarella Date: Thu, 4 Jan 2024 13:57:21 +0100 Subject: [PATCH] JsonSerializable fix --- src/Types/GenericType.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Types/GenericType.php b/src/Types/GenericType.php index 2f198ca..345500c 100644 --- a/src/Types/GenericType.php +++ b/src/Types/GenericType.php @@ -37,9 +37,9 @@ public function __construct( string $json = null ) { /** * Ritorna le proprietà della classe serializzabili - * @return array + * @return array|mixed */ - public function jsonSerialize() { + public function jsonSerialize(): mixed { $properties = []; foreach ( get_object_vars( $this ) as $key => $value ) {