From 2549959fcbc83af91c644ad83d936630619ca12b Mon Sep 17 00:00:00 2001 From: Seamus Lee Date: Mon, 17 Jul 2023 08:57:16 +1000 Subject: [PATCH] [NFC][PHP8.2] Fix dynamic property _loggedInUser --- tests/phpunit/CiviTest/CiviUnitTestCase.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/phpunit/CiviTest/CiviUnitTestCase.php b/tests/phpunit/CiviTest/CiviUnitTestCase.php index a51328484a..bf917de2e7 100644 --- a/tests/phpunit/CiviTest/CiviUnitTestCase.php +++ b/tests/phpunit/CiviTest/CiviUnitTestCase.php @@ -2068,10 +2068,10 @@ class CiviUnitTestCase extends PHPUnit\Framework\TestCase { "); } - $this->_loggedInUser = CRM_Core_Session::singleton()->get('userID'); + $loggedInUser = CRM_Core_Session::singleton()->get('userID'); $this->callAPISuccess('group_contact', 'create', [ 'group_id' => $permissionedGroup, - 'contact_id' => $this->_loggedInUser, + 'contact_id' => $loggedInUser, ]); if (!$isProfile) { -- 2.25.1