diff --git a/CRM/Member/BAO/Membership.php b/CRM/Member/BAO/Membership.php index 4f2f491ec6e7..1030eaae1c9b 100644 --- a/CRM/Member/BAO/Membership.php +++ b/CRM/Member/BAO/Membership.php @@ -1324,7 +1324,7 @@ public static function sortName($id) { * @throws \CRM_Core_Exception * @throws \CiviCRM_API3_Exception */ - public static function createRelatedMemberships(&$params, &$dao, $reset = FALSE) { + public static function createRelatedMemberships($params, $dao, $reset = FALSE) { // CRM-4213 check for loops, using static variable to record contacts already processed. if (!isset(\Civi::$statics[__CLASS__]['related_contacts'])) { \Civi::$statics[__CLASS__]['related_contacts'] = [];