Skip to content

Commit

Permalink
[PAYONE-80] Reset counter for line items
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan-Erik Spreng committed Oct 9, 2020
1 parent 52d349a commit d9ed89c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Components/Hydrator/LineItemHydrator/LineItemHydrator.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public function mapPayoneOrderLinesByRequest(
array $requestLines
): array {
$requestLineItems = [];
$counter = 1;
$counter = 0;

foreach ($requestLines as $orderLine) {
if (!array_key_exists('id', $orderLine)) {
Expand Down Expand Up @@ -64,7 +64,7 @@ public function mapPayoneOrderLinesByRequest(
public function mapOrderLines(CurrencyEntity $currency, OrderLineItemCollection $lineItemCollection): array
{
$requestLineItems = [];
$counter = 1;
$counter = 0;

/** @var OrderLineItemEntity $lineItem */
foreach ($lineItemCollection as $lineItem) {
Expand Down

0 comments on commit d9ed89c

Please sign in to comment.