From 3fc6811836968a2e1233174dc5096aad0a44b212 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=83=9E=E3=82=A4=E3=83=A4=E3=83=BC=E3=82=AF=E3=83=AA?= =?UTF-8?q?=E3=82=B9?= Date: Wed, 8 Nov 2023 16:43:37 +0900 Subject: [PATCH] =?UTF-8?q?=E7=B7=8A=E6=80=A5=E4=BF=AE=E6=AD=A3=20AddPoint?= =?UTF-8?q?Processor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Eccube/Service/PurchaseFlow/Processor/AddPointProcessor.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Eccube/Service/PurchaseFlow/Processor/AddPointProcessor.php b/src/Eccube/Service/PurchaseFlow/Processor/AddPointProcessor.php index d5d303f0521..7943ff662b3 100644 --- a/src/Eccube/Service/PurchaseFlow/Processor/AddPointProcessor.php +++ b/src/Eccube/Service/PurchaseFlow/Processor/AddPointProcessor.php @@ -69,7 +69,7 @@ private function calculateAddPoint(ItemHolderInterface $itemHolder) $basicPointRate = $this->BaseInfo->getBasicPointRate(); // 明細ごとのポイントを集計 - $totalPoint = array_reduce($itemHolder->getItems(), + $totalPoint = array_reduce($itemHolder->getItems()->toArray(), function ($carry, ItemInterface $item) use ($basicPointRate) { $pointRate = $item->getPointRate() ? $item->getPointRate() : null;