PHP 7 notice: Only variables should be assigned by reference in CRM/Member/Form/Task.php, also applicable to Event, Grant, Pledge, Core
I get this e-notice when creating a PDF letter from a membership search task:
Notice: Only variables should be assigned by reference in <path>/CRM/Member/Form/Task.php on line 134
The offending code - I think it's just a matter of removing the &
public function setContactIDs() {
$this->_contactIds = &CRM_Core_DAO::getContactIDsFromComponent($this->_memberIds,
'civicrm_membership'
);
}