From b76b3590915bb92f068cbcb3b262fbe882544c1d Mon Sep 17 00:00:00 2001 From: Seamus Lee Date: Mon, 7 Jun 2021 04:48:49 +0000 Subject: [PATCH] [php8-compact][REF] Fix api_v3_PaymentTokenTest to work on php8 --- tests/phpunit/CiviTest/CiviUnitTestCase.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/phpunit/CiviTest/CiviUnitTestCase.php b/tests/phpunit/CiviTest/CiviUnitTestCase.php index aa3e5b4c36..d7eb28e659 100644 --- a/tests/phpunit/CiviTest/CiviUnitTestCase.php +++ b/tests/phpunit/CiviTest/CiviUnitTestCase.php @@ -2032,7 +2032,7 @@ VALUES } foreach ($params as $key => $value) { - if ($key == 'version' || substr($key, 0, 3) == 'api' || !array_key_exists($keys[$key], $result)) { + if ($key == 'version' || substr($key, 0, 3) == 'api' || (!array_key_exists($key, $keys) || !array_key_exists($keys[$key], $result))) { continue; } if (in_array($key, $dateFields)) { -- 2.25.1