Remove unnecessary pass-by-reference
authorEileen McNaughton <emcnaughton@wikimedia.org>
Fri, 22 Oct 2021 03:27:40 +0000 (16:27 +1300)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Fri, 22 Oct 2021 03:27:40 +0000 (16:27 +1300)
CRM/Mailing/Event/BAO/Subscribe.php

index 71baa417fe75bd3763ec9ad373d697adb801a527..b02455d0cb957909d1db090d5a2b913c04f9c1ba 100644 (file)
@@ -335,7 +335,7 @@ SELECT     civicrm_email.id as email_id
    *   during event registration.
    * @param string $context
    */
-  public static function commonSubscribe(&$groups, &$params, $contactId = NULL, $context = NULL) {
+  public static function commonSubscribe($groups, $params, $contactId = NULL, $context = NULL) {
     $contactGroups = CRM_Mailing_Event_BAO_Subscribe::getContactGroups($params['email'], $contactId);
     $group = [];
     $success = NULL;