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();