1
0
mirror of https://github.com/flarum/core.git synced 2025-08-04 15:37:51 +02:00

fix: phpstan

This commit is contained in:
Sami Mazouz
2024-10-25 16:11:24 +01:00
parent ff7b02ac1b
commit 9817cb8a60

View File

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