From 06878403451b8f800965bcd7a1b41100e0819546 Mon Sep 17 00:00:00 2001 From: arti0090 Date: Tue, 1 Jun 2021 12:59:10 +0200 Subject: [PATCH] php 8.0 pls work --- tests/Behat/Page/Admin/OrderRefundsPage.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/Behat/Page/Admin/OrderRefundsPage.php b/tests/Behat/Page/Admin/OrderRefundsPage.php index 8752d29d9..4d94ab724 100644 --- a/tests/Behat/Page/Admin/OrderRefundsPage.php +++ b/tests/Behat/Page/Admin/OrderRefundsPage.php @@ -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); }