* @return CRM_Contribute_BAO_Contribution|null
* The found object or null
*/
- public static function getValues($params, &$values, &$ids) {
+ public static function getValues($params, &$values = [], &$ids = []) {
if (empty($params)) {
return NULL;
}
$primaryContributionID = isset($contribution->id) ? $contribution->id : $objects['first_contribution']->id;
// The previous details are used when calculating line items so keep it before any code that 'does something'
if (!empty($contribution->id)) {
- $input['prevContribution'] = CRM_Contribute_BAO_Contribution::getValues(['id' => $contribution->id],
- CRM_Core_DAO::$_nullArray, CRM_Core_DAO::$_nullArray);
+ $input['prevContribution'] = CRM_Contribute_BAO_Contribution::getValues(['id' => $contribution->id]);
}
$inputContributionWhiteList = [
'fee_amount',