Merge branch 'fix-mapDonation' into 'main'
APIWrapper: Make `mapDonation()` static becauts it's called static See merge request Marc_Michalsky/de-forumzfd-twinglecampaign!2
This commit is contained in:
commit
ee32f19f31
1 changed files with 4 additions and 4 deletions
|
@ -103,12 +103,12 @@ class CRM_TwingleCampaign_Utils_APIWrapper {
|
|||
* the de.systopia.twingle extension can include the campaign into the
|
||||
* contribution which it will create.
|
||||
*
|
||||
* @param $apiRequest
|
||||
* @param $callsame
|
||||
* @param array $apiRequest
|
||||
* @param callable $callsame
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
public function mapDonation($apiRequest, $callsame) {
|
||||
public static function mapDonation(array $apiRequest, callable $callsame) {
|
||||
|
||||
if (array_key_exists(
|
||||
'campaign_id',
|
||||
|
@ -207,4 +207,4 @@ class CRM_TwingleCampaign_Utils_APIWrapper {
|
|||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue