Remove deprecated parameter
authoreileen <emcnaughton@wikimedia.org>
Tue, 17 Mar 2020 00:07:47 +0000 (13:07 +1300)
committereileen <emcnaughton@wikimedia.org>
Tue, 17 Mar 2020 00:07:47 +0000 (13:07 +1300)
This parameter was deprecated a while back - we obviously used caution at the time
but we can remove it now

CRM/Member/BAO/Membership.php

index a8265b8a67b618c7814bab4e2d7665a6bb590ba4..ce16334c3a96a48b51ffec394c81102424792dab 100644 (file)
@@ -2389,17 +2389,12 @@ WHERE      civicrm_membership.is_test = 0
    *
    * @param array $params
    *   Array of submitted params.
-   * @param array $ids
-   *   (@return CRM_Contribute_BAO_Contribution
    *
    * @return CRM_Contribute_BAO_Contribution
    * @throws \CRM_Core_Exception
    * @throws \CiviCRM_API3_Exception
    */
-  public static function recordMembershipContribution(&$params, $ids = []) {
-    if (!empty($ids)) {
-      CRM_Core_Error::deprecatedFunctionWarning('no $ids array');
-    }
+  public static function recordMembershipContribution(&$params) {
     $membershipId = $params['membership_id'];
     $contributionParams = [];
     $config = CRM_Core_Config::singleton();