From: Eileen McNaughton Date: Wed, 6 Apr 2022 22:47:54 +0000 (+1200) Subject: Fix function calls to be non-static X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=672b72ea260eb17c37f4cb5fb5a2045c8953ee98;p=civicrm-core.git Fix function calls to be non-static --- diff --git a/CRM/Contribute/Import/Parser/Contribution.php b/CRM/Contribute/Import/Parser/Contribution.php index a8a98ef50d..33b71a0cb4 100644 --- a/CRM/Contribute/Import/Parser/Contribution.php +++ b/CRM/Contribute/Import/Parser/Contribution.php @@ -329,7 +329,7 @@ class CRM_Contribute_Import_Parser_Contribution extends CRM_Contribute_Import_Pa } // process pledge payment assoc w/ the contribution - return self::processPledgePayments($formatted); + return $this->processPledgePayments($formatted); } $labels = [ 'id' => 'Contribution ID', @@ -383,7 +383,7 @@ class CRM_Contribute_Import_Parser_Contribution extends CRM_Contribute_Import_Pa } // process pledge payment assoc w/ the contribution - return self::processPledgePayments($formatted); + return $this->processPledgePayments($formatted); } // Using new Dedupe rule. @@ -450,7 +450,7 @@ class CRM_Contribute_Import_Parser_Contribution extends CRM_Contribute_Import_Pa } // process pledge payment assoc w/ the contribution - return self::processPledgePayments($formatted); + return $this->processPledgePayments($formatted); } /** @@ -460,7 +460,7 @@ class CRM_Contribute_Import_Parser_Contribution extends CRM_Contribute_Import_Pa * * @return int */ - public function processPledgePayments(array $formatted) { + private function processPledgePayments(array $formatted) { if (!empty($formatted['pledge_payment_id']) && !empty($formatted['pledge_id'])) { //get completed status $completeStatusID = CRM_Core_PseudoConstant::getKey('CRM_Contribute_BAO_Contribution', 'contribution_status_id', 'Completed');