From 919a4fafb89dcf41bdecd8ce69e7b84c7204959e Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Fri, 16 Jun 2023 15:50:09 +1200 Subject: [PATCH] Add deprecation notice to legacy exception class aliases --- api/Exception.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/api/Exception.php b/api/Exception.php index 78498fb901..ebad7426a4 100644 --- a/api/Exception.php +++ b/api/Exception.php @@ -10,5 +10,11 @@ // These two classes were basically equivalent +/** + * @deprecated in CiviCRM 5.52, will be removed around 5.92. Use CRM_Core_Exception + */ class_alias('CRM_Core_Exception', 'API_Exception'); +/** + * @deprecated in CiviCRM 5.52, will be removed around 5.92. Use CRM_Core_Exception + */ class_alias('CRM_Core_Exception', 'CiviCRM_API3_Exception'); -- 2.25.1