Skip to content

Commit

Permalink
FIx array_map in transformItems()
Browse files Browse the repository at this point in the history
  • Loading branch information
xHeaven committed Jan 2, 2025
1 parent b32a68d commit 1872659
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Resolvers/TransformedDataCollectableResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ protected function transformItems(
): array {
$collection = array_map(
fn ($value) => $this->transformationClosure($nestedContext)($value),
$items
is_array($items) ? $items : $items->all()
);

return $executeWrap
Expand Down

0 comments on commit 1872659

Please sign in to comment.