You have to include the & in the function too, and I don't think it's
really needed here.
----------------------------------------
* CRM-15882: batch merge overwrites addresses rather than try to preserve them
https://issues.civicrm.org/jira/browse/CRM-15882
// Generate var $migrationInfo. The variable structure is exactly same as
// $formValues submitted during a UI merge for a pair of contacts.
- $rowsElementsAndInfo = &CRM_Dedupe_Merger::getRowsElementsAndInfo($mainId, $otherId);
+ $rowsElementsAndInfo = CRM_Dedupe_Merger::getRowsElementsAndInfo($mainId, $otherId);
$migrationInfo = &$rowsElementsAndInfo['migration_info'];