From b42c23bac472810f8139550f0909320f62d77ebd Mon Sep 17 00:00:00 2001 From: "felix.ruf" Date: Tue, 11 Mar 2025 08:13:13 +0100 Subject: [PATCH] add type to method argument --- src/Mealz/AccountingBundle/Service/PayPal/PayPalService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mealz/AccountingBundle/Service/PayPal/PayPalService.php b/src/Mealz/AccountingBundle/Service/PayPal/PayPalService.php index e4ca9c683..2000c2fe8 100644 --- a/src/Mealz/AccountingBundle/Service/PayPal/PayPalService.php +++ b/src/Mealz/AccountingBundle/Service/PayPal/PayPalService.php @@ -109,7 +109,7 @@ private function toPayPalOrder(Order $orderResp): PayPalOrder * * @throws RuntimeException */ - private function toOrderAmount($purchaseUnits): float + private function toOrderAmount(array $purchaseUnits): float { if (!is_array($purchaseUnits) || !isset($purchaseUnits[0])) { throw new RuntimeException('invalid order response; purchase units not found');