mirror of
https://github.com/flarum/core.git
synced 2025-08-04 07:27:39 +02:00
fix: phpstan
This commit is contained in:
@@ -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();
|
||||
|
Reference in New Issue
Block a user