Skip to content

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

dotu requested to merge dotu/de-forumzfd-twinglecampaign:fix-mapDonation into main

The method \CRM_TwingleCampaign_Utils_APIWrapper::mapDonation() is non static, but is called static via callback https://lab.civicrm.org/Marc_Michalsky/de-forumzfd-twinglecampaign/-/blob/1.0.5/CRM/TwingleCampaign/Utils/APIWrapper.php?ref_type=tags#L21

Currently it results in the following error:

PHP message: Uncaught PHP Exception TypeError: "call_user_func(): Argument #1 ($callback) must be a valid callback, non-static method CRM_TwingleCampaign_Utils_APIWrapper::mapDonation() cannot be called statically" at [...]/civicrm/civicrm-core/Civi/API/Provider/WrappingProvider.php line 48

Merge request reports

Loading