Skip to content

Commit 3a7c95d

Browse files
committed
Pint
1 parent 88b7653 commit 3a7c95d

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/SimpleDTO.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -491,11 +491,9 @@ private function formatArrayableValue(mixed $value): array|int|string
491491

492492
private function transformCollectionToArray(Collection $collection): array
493493
{
494-
return $collection->map(function ($item) {
495-
return $this->isArrayable($item)
494+
return $collection->map(fn ($item) => $this->isArrayable($item)
496495
? $this->formatArrayableValue($item)
497-
: $item;
498-
})->toArray();
496+
: $item)->toArray();
499497
}
500498

501499
private function transformDTOToArray(SimpleDTO $dto): array

0 commit comments

Comments
 (0)