From 59b317a331426ac8053d075b448673bc5ddb82f6 Mon Sep 17 00:00:00 2001 From: eileen Date: Thu, 23 Jul 2020 15:52:55 +1200 Subject: [PATCH] [REF] Do not pass variable by reference This variable is not altered in the function so does not need to be passed by reference --- CRM/Contact/BAO/Contact.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/CRM/Contact/BAO/Contact.php b/CRM/Contact/BAO/Contact.php index b97aa37b12..8d522d81f8 100644 --- a/CRM/Contact/BAO/Contact.php +++ b/CRM/Contact/BAO/Contact.php @@ -1958,10 +1958,14 @@ ORDER BY civicrm_email.is_primary DESC"; * * @return int * contact id created/edited + * + * @throws \CRM_Core_Exception + * @throws \CiviCRM_API3_Exception + * @throws \Civi\API\Exception\UnauthorizedException */ public static function createProfileContact( &$params, - &$fields = [], + $fields = [], $contactID = NULL, $addToGroupID = NULL, $ufGroupId = NULL, -- 2.25.1