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