Skip to content

Commit

Permalink
Wrap collection
Browse files Browse the repository at this point in the history
  • Loading branch information
tobias-kuendig committed Jun 2, 2024
1 parent 9f51035 commit 1674856
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/traits/PriceAccessors.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public function getPriceAttribute()

public function mapCurrencyPrices($items)
{
return $items->mapWithKeys(function ($price) {
return Collection::wrap($items)->mapWithKeys(function ($price) {
$code = $price->currency->code;

$product = null;
Expand Down

0 comments on commit 1674856

Please sign in to comment.