From d1b2530c49a05f7faf784e04e3bed24617d4fa3e Mon Sep 17 00:00:00 2001 From: Bradley Taylor Date: Sat, 30 Dec 2023 18:17:50 +0000 Subject: [PATCH] [REF][PHP8.2] Declare missing properties on CRM_Event_Form_Registration_AdditionalParticipant --- .../Registration/AdditionalParticipant.php | 43 ++++++++++++++++++- 1 file changed, 41 insertions(+), 2 deletions(-) diff --git a/CRM/Event/Form/Registration/AdditionalParticipant.php b/CRM/Event/Form/Registration/AdditionalParticipant.php index 81ee3e4d07..42ce748946 100644 --- a/CRM/Event/Form/Registration/AdditionalParticipant.php +++ b/CRM/Event/Form/Registration/AdditionalParticipant.php @@ -22,10 +22,49 @@ class CRM_Event_Form_Registration_AdditionalParticipant extends CRM_Event_Form_Registration { /** - * Pre-registered additional participant id. + * Additional participant id. + * + * @var int + * @internal + */ + public $_additionalParticipantId = NULL; + + /** + * Tracks whether we are at the last participant. + * + * @var bool + * @internal + */ + public $_lastParticipant = FALSE; + + /** + * @var bool + * @internal + */ + public $_resetAllowWaitlist = FALSE; + + /** + * @var int + * @internal + */ + public $_contactId; + + /** + * Used within CRM_Event_Form_EventFees + * + * @var int + * @internal + */ + public $_discountId; + + /** + * Alias of $this->_additionalParticipantId, + * Used within CRM_Event_Form_EventFees + * * @var int + * @internal */ - public $additionalParticipantId = NULL; + public $_pId; /** * Get the active UFGroups (profiles) on this form -- 2.25.1