APIWrapper: Make mapDonation() static becauts it's called static

This commit is contained in:
Dominic Tubach 2024-04-19 10:15:55 +02:00
parent bcd2b448d2
commit db1ab69138

View file

@ -103,12 +103,12 @@ class CRM_TwingleCampaign_Utils_APIWrapper {
* the de.systopia.twingle extension can include the campaign into the * the de.systopia.twingle extension can include the campaign into the
* contribution which it will create. * contribution which it will create.
* *
* @param $apiRequest * @param array $apiRequest
* @param $callsame * @param callable $callsame
* *
* @return mixed * @return mixed
*/ */
public function mapDonation($apiRequest, $callsame) { public static function mapDonation(array $apiRequest, callable $callsame) {
if (array_key_exists( if (array_key_exists(
'campaign_id', 'campaign_id',