From 532862d3ecf243e796055be4167f229ab85dfa51 Mon Sep 17 00:00:00 2001 From: demeritcowboy Date: Thu, 11 Nov 2021 21:06:16 -0500 Subject: [PATCH] php8 - set null defaults --- tests/phpunit/CRM/Core/SessionTest.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/phpunit/CRM/Core/SessionTest.php b/tests/phpunit/CRM/Core/SessionTest.php index 60c165417d..7cededd320 100644 --- a/tests/phpunit/CRM/Core/SessionTest.php +++ b/tests/phpunit/CRM/Core/SessionTest.php @@ -8,6 +8,10 @@ class CRM_Core_SessionTest extends CiviUnitTestCase { public function setUp(): void { CRM_Core_Smarty::singleton()->clearTemplateVars(); + // set null defaults + foreach (['infoOptions', 'infoType', 'infoMessage', 'infoTitle'] as $info) { + CRM_Core_Smarty::singleton()->assign($info, NULL); + } } /** -- 2.25.1