From 07443ad8fb05f0ed09a4b3249c53c082477e3fd3 Mon Sep 17 00:00:00 2001 From: Bradley Taylor Date: Sun, 21 May 2023 20:34:46 +0100 Subject: [PATCH] [REF][PHP8.2] Declare campaigns property --- CRM/Report/Form.php | 8 ++++++++ CRM/Report/Form/Event/ParticipantListing.php | 1 - 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CRM/Report/Form.php b/CRM/Report/Form.php index ca65f8e554..342e25f8ea 100644 --- a/CRM/Report/Form.php +++ b/CRM/Report/Form.php @@ -552,6 +552,14 @@ class CRM_Report_Form extends CRM_Core_Form { */ protected $_charts = []; + /** + * Array of campaign data, + * populated by calling `$this::addCampaignFields()` + * + * @var array + */ + protected $campaigns = []; + /** * @var \Civi\Report\OutputHandlerInterface */ diff --git a/CRM/Report/Form/Event/ParticipantListing.php b/CRM/Report/Form/Event/ParticipantListing.php index 1b5afea5ac..f9488cd41f 100644 --- a/CRM/Report/Form/Event/ParticipantListing.php +++ b/CRM/Report/Form/Event/ParticipantListing.php @@ -22,7 +22,6 @@ class CRM_Report_Form_Event_ParticipantListing extends CRM_Report_Form { protected $_groupFilter = TRUE; protected $_tagFilter = TRUE; protected $_balance = FALSE; - protected $campaigns; protected $_customGroupExtends = array( 'Participant', -- 2.25.1