Skip to content

Commit

Permalink
[rector] Rector fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
lee-to authored and github-actions[bot] committed Nov 24, 2023
1 parent 39562c3 commit 01e7137
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Fields/Relationships/HasMany.php
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ public function preparedClonedFields()
$fields = $this->preparedFields();

return $this->hasFields()
? $fields->map(fn($field) => (clone $field))
? $fields->map(fn($field): int => (clone $field))
//If there are no fields, then the resource fields always return new objects
: $fields;
}
Expand Down

0 comments on commit 01e7137

Please sign in to comment.