mirror of
https://github.com/flarum/framework.git
synced 2024-11-28 03:32:49 +08:00
fix: phpstan
This commit is contained in:
parent
ff7b02ac1b
commit
9817cb8a60
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue
Block a user