From 7f4945fa600f3842514ad5f0474a56c35fb8c529 Mon Sep 17 00:00:00 2001 From: Jim Seconde Date: Mon, 12 Aug 2024 21:04:47 +0100 Subject: [PATCH] Deprecation warning triggers for upcoming major version changes --- src/Meetings/Client.php | 7 +++++++ src/ProactiveConnect/Client.php | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/src/Meetings/Client.php b/src/Meetings/Client.php index 35b24153..edbe729f 100644 --- a/src/Meetings/Client.php +++ b/src/Meetings/Client.php @@ -18,8 +18,15 @@ class Client implements APIClient { public const IMAGE_TYPES = ['white', 'colored', 'favicon']; + /** + * @deprecated The Meetings API is being sunset and this will be removed in the next major version + */ public function __construct(protected APIResource $api) { + trigger_error( + 'The Meetings API is being sunset and this will be removed in the next major version', + E_USER_DEPRECATED + ); } public function getAPIResource(): APIResource diff --git a/src/ProactiveConnect/Client.php b/src/ProactiveConnect/Client.php index d0c06867..5cb36471 100644 --- a/src/ProactiveConnect/Client.php +++ b/src/ProactiveConnect/Client.php @@ -11,8 +11,15 @@ class Client implements APIClient { + /** + * @deprecated The ProactiveConnect API is being sunset and this will be removed in the next major version + */ public function __construct(protected APIResource $api) { + trigger_error( + 'The ProactiveConnect API is being sunset and this will be removed in the next major version', + E_USER_DEPRECATED + ); } public function getAPIResource(): APIResource