Merge pull request #16767 from civicrm/5.24
[civicrm-core.git] / CRM / Core / Payment / Form.php
index 1881d38554e40a9cdc4f8bdde8d79ba23eaea6e5..496f46d22ee12da1afb430f5a3fa26ba1b135e8e 100644 (file)
@@ -375,7 +375,7 @@ class CRM_Core_Payment_Form {
       return $month;
     }
 
-    return CRM_Utils_Array::value('m', $src['credit_card_exp_date']);
+    return $src['credit_card_exp_date']['m'] ?? NULL;
   }
 
   /**
@@ -388,7 +388,7 @@ class CRM_Core_Payment_Form {
    * @return int
    */
   public static function getCreditCardExpirationYear($src) {
-    return CRM_Utils_Array::value('Y', $src['credit_card_exp_date']);
+    return $src['credit_card_exp_date']['Y'] ?? NULL;
   }
 
   /**