Skip to content

Commit

Permalink
php 8.0 pls work
Browse files Browse the repository at this point in the history
  • Loading branch information
arti0090 committed Jun 1, 2021
1 parent a069492 commit 0687840
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/Behat/Page/Admin/OrderRefundsPage.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,12 @@ public function pickUnitWithProductToRefund(string $productName, int $unitNumber

$value = $units[$unitNumber]->find('css','td:nth-child(2)');

$refunded = substr($this->getUnitRefundedTotal($value), 1);
$refunded = (int) substr($this->getUnitRefundedTotal($value), 1);

$total = substr($this->getUnitTotal($value), 1);

/** @var double $total */
$total = $total - $refunded;
$total -= $refunded;

$units[$unitNumber]->find('css','td:nth-child(3) input')->setValue($total);
}
Expand Down

0 comments on commit 0687840

Please sign in to comment.