From c2a8b6d716bcb7537d4613d89b0db617190ec8fe Mon Sep 17 00:00:00 2001 From: Rich Lott / Artful Robot <code.commits@artfulrobot.uk> Date: Thu, 25 Jul 2024 17:21:06 +0100 Subject: [PATCH] Fix pre php8 function signatures --- CRM/Core/Payment/StripeCheckout.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CRM/Core/Payment/StripeCheckout.php b/CRM/Core/Payment/StripeCheckout.php index af3b9628..9955c718 100644 --- a/CRM/Core/Payment/StripeCheckout.php +++ b/CRM/Core/Payment/StripeCheckout.php @@ -157,8 +157,10 @@ class CRM_Core_Payment_StripeCheckout extends CRM_Core_Payment_Stripe { /** * This gathers the line items which are then used in buildCheckoutLineItems() + * + * @param array|PropertyBag $paymentParams */ - public function calculateLineItems(array|PropertyBag $paymentParams): array { + public function calculateLineItems($paymentParams): array { $lineItems = []; if (!empty($paymentParams['skipLineItem']) || empty($paymentParams['line_item'])) { if (!empty($paymentParams['participants_info'])) { -- GitLab