From c3d06508e1243e149c75be9696c0f2aa06f2e921 Mon Sep 17 00:00:00 2001 From: eileen Date: Wed, 1 May 2019 09:33:26 +1200 Subject: [PATCH] Fix deprecation handling Turns out we were one of the sites naughtily using the BAO directly who needed this handling to work - but because we passed a number in quote it didn't - this fixes --- CRM/Contribute/BAO/ContributionRecur.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Contribute/BAO/ContributionRecur.php b/CRM/Contribute/BAO/ContributionRecur.php index 51ff736c2f..c72b032368 100644 --- a/CRM/Contribute/BAO/ContributionRecur.php +++ b/CRM/Contribute/BAO/ContributionRecur.php @@ -263,7 +263,7 @@ class CRM_Contribute_BAO_ContributionRecur extends CRM_Contribute_DAO_Contributi * @return bool */ public static function cancelRecurContribution($params) { - if (is_int($params)) { + if (is_numeric($params)) { CRM_Core_Error::deprecatedFunctionWarning('You are using a BAO function whose signature has changed. Please use the ContributionRecur.cancel api'); $params = ['id' => $params]; } -- 2.25.1