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:
Marc_Michalsky 2024-06-15 09:22:55 +00:00
commit ee32f19f31

View file

@ -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 {
}
}
}
}