From 9726426b5f4b8a781c4291e327459d8912936c3d Mon Sep 17 00:00:00 2001 From: Seamus Lee Date: Fri, 20 Jan 2023 00:39:00 +0000 Subject: [PATCH] [REF][PHP8.2] Fix Deprecated Dynamic class properties in Legacy custom searches extension --- .../CRM/Contact/Form/Search/Custom/Group.php | 54 +++++++++++++++++++ .../phpunit/Civi/Searches/FullTextTest.php | 6 +++ 2 files changed, 60 insertions(+) diff --git a/ext/legacycustomsearches/CRM/Contact/Form/Search/Custom/Group.php b/ext/legacycustomsearches/CRM/Contact/Form/Search/Custom/Group.php index 7eabd91dad..f63bdb2f5a 100644 --- a/ext/legacycustomsearches/CRM/Contact/Form/Search/Custom/Group.php +++ b/ext/legacycustomsearches/CRM/Contact/Form/Search/Custom/Group.php @@ -67,6 +67,60 @@ class CRM_Contact_Form_Search_Custom_Group extends CRM_Contact_Form_Search_Custo protected $_aclFrom = NULL; protected $_aclWhere = NULL; + /** + * Include Groups + * @var array + */ + protected $_includeGroups; + + /** + * Exclude Groups + * @var array + */ + protected $_excludeGroups; + + /** + * Include Tags + * @var array + */ + protected $_includeTags; + + /** + * Exclude Tags + * @var array + */ + protected $_excludeTags; + + /** + * All Search + * @var bool + */ + protected $_allSearch; + + /** + * Does this search use groups + * @var bool + */ + protected $_groups; + + /** + * Does this search use tags + * @var bool + */ + protected $_tags; + + /** + * Is this search And or OR search + * @var string + */ + protected $_andOr; + + /** + * Search Columns + * @var array + */ + protected $_columns; + /** * Class constructor. * diff --git a/ext/legacycustomsearches/tests/phpunit/Civi/Searches/FullTextTest.php b/ext/legacycustomsearches/tests/phpunit/Civi/Searches/FullTextTest.php index bf2e9cd789..47dce216fe 100644 --- a/ext/legacycustomsearches/tests/phpunit/Civi/Searches/FullTextTest.php +++ b/ext/legacycustomsearches/tests/phpunit/Civi/Searches/FullTextTest.php @@ -29,6 +29,12 @@ use PHPUnit\Framework\TestCase; */ class FullTextTest extends TestCase implements HeadlessInterface, HookInterface, TransactionalInterface { + /** + * Entity ids created as part of test + * @var array + */ + protected $ids; + use Test\ContactTestTrait; use Test\Api3TestTrait; -- 2.25.1