Skip to content

Commit

Permalink
Deprecation warning triggers for upcoming major version changes
Browse files Browse the repository at this point in the history
  • Loading branch information
SecondeJK committed Aug 12, 2024
1 parent eb73c22 commit 7f4945f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/Meetings/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 7 additions & 0 deletions src/ProactiveConnect/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7f4945f

Please sign in to comment.