From 87ba64eade7fe4d54c160973b647b2c1a083bb18 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Thu, 2 Mar 2023 09:09:49 +1300 Subject: [PATCH] Rename variable - I figured out what it meant --- tests/phpunit/CRM/Core/BAO/MessageTemplateTest.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/phpunit/CRM/Core/BAO/MessageTemplateTest.php b/tests/phpunit/CRM/Core/BAO/MessageTemplateTest.php index 71dd3ae3ef..868340130a 100644 --- a/tests/phpunit/CRM/Core/BAO/MessageTemplateTest.php +++ b/tests/phpunit/CRM/Core/BAO/MessageTemplateTest.php @@ -505,10 +505,10 @@ emo $tokenData = $this->getOldContactTokens(); $this->setupContactFromTokeData($tokenData); - $ctx = ['contactId' => $tokenData['contact_id']]; - $render = static function (string $templateText) use ($ctx, $tokenData) { + $context = ['contactId' => $tokenData['contact_id']]; + $render = static function (string $templateText) use ($context, $tokenData) { try { - return CRM_Core_TokenSmarty::render(['text' => $templateText], $ctx)['text']; + return CRM_Core_TokenSmarty::render(['text' => $templateText], $context)['text']; } catch (\Throwable $t) { return 'EXCEPTION:' . $t->getMessage(); -- 2.25.1