From 9817cb8a60f66edae121777d12e86e70b67a29ad Mon Sep 17 00:00:00 2001 From: Sami Mazouz Date: Fri, 25 Oct 2024 16:11:24 +0100 Subject: [PATCH] fix: phpstan --- framework/core/src/Api/Schema/Relationship/ToMany.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/core/src/Api/Schema/Relationship/ToMany.php b/framework/core/src/Api/Schema/Relationship/ToMany.php index 418338e3b..b27470ebe 100644 --- a/framework/core/src/Api/Schema/Relationship/ToMany.php +++ b/framework/core/src/Api/Schema/Relationship/ToMany.php @@ -18,7 +18,7 @@ class ToMany extends BaseToMany { use FlarumRelationship; - public function serializeValue($value, Context $context): mixed + public function serializeValue(mixed $value, Context $context): mixed { if ($value && ! is_array($value) && method_exists($value, 'toArray')) { $value = $value->toArray();