diff --git a/CRM/Core/Payment/StripeCheckout.php b/CRM/Core/Payment/StripeCheckout.php
index af3b962851a266480b071216e035600450c0767f..9955c718eb1423f2f231f7a41d8cd34f42681832 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'])) {