Skip to content

Commit 8b31428

Browse files
committed
Better deprecation
1 parent 1190b5e commit 8b31428

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/Server/ClientAwareInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
namespace Mcp\Server;
1313

1414
/**
15-
* @deprecated We dont need this. Use RequestContext as argument injection instead.
15+
* @deprecated This is deprecated since 0.2.0 and will be removed in 0.3.0. Use RequestContext with argument injection instead.
1616
*/
1717
interface ClientAwareInterface
1818
{

src/Server/ClientAwareTrait.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717

1818
/**
1919
* @phpstan-import-type SampleOptions from ClientGateway
20+
*
21+
* @deprecated since 0.2.0, to be removed in 0.3.0. Use the RequestContext->getClientGateway() directly instead.
2022
*/
2123
trait ClientAwareTrait
2224
{

0 commit comments

Comments
 (0)