Skip to content

Commit

Permalink
fix: phpstan
Browse files Browse the repository at this point in the history
  • Loading branch information
SychO9 committed Oct 25, 2024
1 parent ff7b02a commit 9817cb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion framework/core/src/Api/Schema/Relationship/ToMany.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 9817cb8

Please sign in to comment.