Skip to content

Commit

Permalink
fix(#6736) making CS Fixer happy
Browse files Browse the repository at this point in the history
  • Loading branch information
amermchaudhary authored Oct 22, 2024
1 parent 616531c commit 2b8c153
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,13 +96,13 @@ public function create(string $resourceClass, string $property, array $options =
continue;
}

$collection = match($relation['type']) {
$collection = match ($relation['type']) {
HasMany::class,
HasManyThrough::class,
BelongsToMany::class,
MorphMany::class,
MorphToMany::class => true,
default => false
default => false,
};

$type = new Type($collection ? Type::BUILTIN_TYPE_ITERABLE : Type::BUILTIN_TYPE_OBJECT, false, $relation['related'], $collection, collectionValueType: new Type(Type::BUILTIN_TYPE_OBJECT, false, $relation['related']));
Expand Down

0 comments on commit 2b8c153

Please sign in to comment.