Skip to content

Commit

Permalink
Merge pull request #14560 from seamuslee001/null_array_profile
Browse files Browse the repository at this point in the history
Remove unncessary $_nullArray usage when calling createProfileContact function
  • Loading branch information
eileenmcnaughton authored Jun 17, 2019
2 parents 5414c31 + 7b4b0b6 commit 1861244
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CRM/Core/BAO/UFMatch.php
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ public static function &synchronizeUFMatch(&$user, $userKey, $uniqId, $uf, $stat
}
}

$contactId = CRM_Contact_BAO_Contact::createProfileContact($params, CRM_Core_DAO::$_nullArray);
$contactId = CRM_Contact_BAO_Contact::createProfileContact($params);
$ufmatch->contact_id = $contactId;
$ufmatch->uf_name = $uniqId;
}
Expand Down
2 changes: 1 addition & 1 deletion CRM/Friend/BAO/Friend.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public function __construct() {
* @return int
*/
public static function add(&$params) {
return CRM_Contact_BAO_Contact::createProfileContact($params, CRM_Core_DAO::$_nullArray);
return CRM_Contact_BAO_Contact::createProfileContact($params);
}

/**
Expand Down
3 changes: 2 additions & 1 deletion tests/phpunit/CRM/Contribute/BAO/ContributionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,8 @@ public function testCreateAndGetHonorContact() {
);
$softParam = array('soft_credit_type_id' => 1);

$honoreeContactId = CRM_Contact_BAO_Contact::createProfileContact($params, CRM_Core_DAO::$_nullArray,
$null = [];
$honoreeContactId = CRM_Contact_BAO_Contact::createProfileContact($params, $null,
NULL, NULL, $honoreeProfileId
);

Expand Down

0 comments on commit 1861244

Please sign in to comment.