From d737af024ae3b40fff43a97d349a306012f4b3cd Mon Sep 17 00:00:00 2001 From: Seamus Lee Date: Thu, 18 Jun 2020 18:53:20 +1000 Subject: [PATCH] [REF] Ensure that the Manaual Payment Processor sets the _paymentProcessor variable like other Processors to fix issues in PHP7.4 and UnitTests --- CRM/Core/Payment/Manual.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/CRM/Core/Payment/Manual.php b/CRM/Core/Payment/Manual.php index 0a311b48da91..a2c7c5dd2593 100644 --- a/CRM/Core/Payment/Manual.php +++ b/CRM/Core/Payment/Manual.php @@ -23,6 +23,19 @@ class CRM_Core_Payment_Manual extends CRM_Core_Payment { */ public function checkConfig() {} + /** + * Constructor. + */ + public function __construct() { + $this->_paymentProcessor = [ + 'payment_type' => 0, + 'billing_mode' => 0, + 'id' => 0, + 'url_recur' => '', + 'is_recur' => 0, + ]; + } + /** * Get billing fields required for this processor. *