From 34faaa0a2eadd890a40cb36f36e65ab36a9c8db0 Mon Sep 17 00:00:00 2001 From: Bradley Taylor Date: Fri, 8 Dec 2023 17:35:43 +0000 Subject: [PATCH] [REF][PHP8.2] Declare properties in CRM_Contribute_Form_ContributionPage_Widget --- .../Form/ContributionPage/Widget.php | 28 ++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/CRM/Contribute/Form/ContributionPage/Widget.php b/CRM/Contribute/Form/ContributionPage/Widget.php index a8b838cbb4..4cb6185c82 100644 --- a/CRM/Contribute/Form/ContributionPage/Widget.php +++ b/CRM/Contribute/Form/ContributionPage/Widget.php @@ -15,10 +15,36 @@ * @copyright CiviCRM LLC https://civicrm.org/licensing */ class CRM_Contribute_Form_ContributionPage_Widget extends CRM_Contribute_Form_ContributionPage { - protected $_colors; + /** + * Configuration for each form field + * + * @var array + * @internal + */ + public $_fields = []; + + /** + * Configuration for each color field + * + * @var array + * @internal + */ + public $_colorFields = []; + + /** + * @var CRM_Contribute_DAO_Widget + */ protected $_widget; + /** + * Name of the refresh button, + * used to display the widget preview + * + * @var string + */ + protected $_refreshButtonName; + public function preProcess() { parent::preProcess(); $this->setSelectedChild('widget'); -- 2.25.1