Make type strict
authorEileen McNaughton <emcnaughton@wikimedia.org>
Sun, 31 Jul 2022 19:59:32 +0000 (05:59 +1000)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Tue, 2 Aug 2022 03:55:02 +0000 (15:55 +1200)
api/v3/Contribution.php

index 83f8b910642bd43f35794fad55ee20b06d23e45b..8cd09aa6672079df06532666754470eb412e8fa2 100644 (file)
@@ -476,7 +476,7 @@ function _civicrm_api3_contribution_sendconfirmation_spec(&$params) {
  * @throws \CRM_Core_Exception
  * @throws \Exception
  */
-function civicrm_api3_contribution_completetransaction($params) {
+function civicrm_api3_contribution_completetransaction($params): array {
   $contribution = new CRM_Contribute_BAO_Contribution();
   $contribution->id = $params['id'];
   if (!$contribution->find(TRUE)) {