/**
* Build the radio/text form elements for the amount field
*
+ * @internal function is not currently called by any extentions in our civi
+ * 'universe' and is not supported for such use. Signature has changed & will
+ * change again.
+ *
* @param CRM_Event_Form_Registration_Register $form
* Form object.
* @param bool $required
*
* @throws \CRM_Core_Exception
*/
- public static function buildAmount(&$form, $required = TRUE, $discountId = NULL, $priceSetID = NULL) {
+ public static function buildAmount($form, $required, $discountId, $priceSetID) {
$feeFields = $form->_values['fee'] ?? NULL;
if (is_array($feeFields)) {