From 8e0abb10a88daa9a4daff537bf3272943c418686 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Sat, 2 Dec 2023 11:20:53 +1300 Subject: [PATCH] Fix type error (new in master --- CRM/Contribute/Form/Contribution/Main.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Contribute/Form/Contribution/Main.php b/CRM/Contribute/Form/Contribution/Main.php index 1cf1b8881b..b3120cf913 100644 --- a/CRM/Contribute/Form/Contribution/Main.php +++ b/CRM/Contribute/Form/Contribution/Main.php @@ -1795,7 +1795,7 @@ class CRM_Contribute_Form_Contribution_Main extends CRM_Contribute_Form_Contribu ->execute(); } } - return $this->existingMemberships; + return $this->existingMemberships ?? []; } /** -- 2.25.1