From 4ca2ef95bff85389d5b51ecfde6deae0e49bb877 Mon Sep 17 00:00:00 2001 From: Bradley Taylor Date: Sun, 10 Dec 2023 10:26:48 +0000 Subject: [PATCH] [REF][PHP8.2] Switch dynamic property to local variable --- CRM/Event/Form/Registration.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/CRM/Event/Form/Registration.php b/CRM/Event/Form/Registration.php index f94dd144d5..954950e972 100644 --- a/CRM/Event/Form/Registration.php +++ b/CRM/Event/Form/Registration.php @@ -1489,7 +1489,7 @@ class CRM_Event_Form_Registration extends CRM_Core_Form { */ public function processRegistration($params, $contactID = NULL) { $session = CRM_Core_Session::singleton(); - $this->_participantInfo = []; + $participantInfo = []; // CRM-4320, lets build array of cancelled additional participant ids // those are drop or skip by primary at the time of confirmation. @@ -1526,10 +1526,10 @@ class CRM_Event_Form_Registration extends CRM_Core_Form { } } if ($participantEmail) { - $this->_participantInfo[] = $participantEmail; + $participantInfo[] = $participantEmail; } else { - $this->_participantInfo[] = $value['first_name'] . ' ' . $value['last_name']; + $participantInfo[] = $value['first_name'] . ' ' . $value['last_name']; } } elseif (!empty($value['contact_id'])) { @@ -1587,8 +1587,8 @@ class CRM_Event_Form_Registration extends CRM_Core_Form { } //set information about additional participants if exists - if (count($this->_participantInfo)) { - $this->set('participantInfo', $this->_participantInfo); + if (count($participantInfo)) { + $this->set('participantInfo', $participantInfo); } if ($this->getPaymentProcessorObject()->supports('noReturn') -- 2.25.1