From 0a2d898e20a465b843a023372a7f1d3924477287 Mon Sep 17 00:00:00 2001 From: eileen Date: Fri, 14 Jun 2019 08:03:33 -0400 Subject: [PATCH] Php 7.2 fix on import Fixes a known issue where php 7.2 is 'noisy' if you try to count NULL - solution is to use an empty array --- CRM/Contribute/Import/Parser/Contribution.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CRM/Contribute/Import/Parser/Contribution.php b/CRM/Contribute/Import/Parser/Contribution.php index 9aacd34fae..f07efa7b3b 100644 --- a/CRM/Contribute/Import/Parser/Contribution.php +++ b/CRM/Contribute/Import/Parser/Contribution.php @@ -56,11 +56,11 @@ class CRM_Contribute_Import_Parser_Contribution extends CRM_Contribute_Import_Pa * Class constructor. * * @param $mapperKeys - * @param null $mapperSoftCredit + * @param array $mapperSoftCredit * @param null $mapperPhoneType - * @param null $mapperSoftCreditType + * @param array $mapperSoftCreditType */ - public function __construct(&$mapperKeys, $mapperSoftCredit = NULL, $mapperPhoneType = NULL, $mapperSoftCreditType = NULL) { + public function __construct(&$mapperKeys, $mapperSoftCredit = [], $mapperPhoneType = NULL, $mapperSoftCreditType = []) { parent::__construct(); $this->_mapperKeys = &$mapperKeys; $this->_mapperSoftCredit = &$mapperSoftCredit; -- 2.25.1