Remove unnecessary pass-by-ref
authorEileen McNaughton <emcnaughton@wikimedia.org>
Thu, 6 Jan 2022 23:58:53 +0000 (12:58 +1300)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Thu, 6 Jan 2022 23:58:53 +0000 (12:58 +1300)
CRM/Contact/BAO/Relationship.php

index dd94e3daa230c2f78f9d543bfbea77a996db0631..226d0c0940b874c1e4233af3e3c6b866cba1b7d2 100644 (file)
@@ -1537,7 +1537,7 @@ LEFT JOIN  civicrm_country ON (civicrm_address.country_id = civicrm_country.id)
    * @throws \CRM_Core_Exception
    * @throws \CiviCRM_API3_Exception
    */
-  public static function relatedMemberships($contactId, &$params, $ids, $action = CRM_Core_Action::ADD, $active = TRUE) {
+  public static function relatedMemberships($contactId, $params, $ids, $action = CRM_Core_Action::ADD, $active = TRUE) {
     // Check the end date and set the status of the relationship
     // accordingly.
     $status = self::CURRENT;