fix: phpstan

This commit is contained in:
Sami Mazouz 2024-10-25 16:11:24 +01:00
parent ff7b02ac1b
commit 9817cb8a60
No known key found for this signature in database

View File

@ -18,7 +18,7 @@ class ToMany extends BaseToMany
{ {
use FlarumRelationship; 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')) { if ($value && ! is_array($value) && method_exists($value, 'toArray')) {
$value = $value->toArray(); $value = $value->toArray();