Skip to content

Commit

Permalink
Merge pull request #14 from spiral/enhancement/deprecations
Browse files Browse the repository at this point in the history
Deprecate `RPC::fromEnvironment` and `RPC::fromGlobals`
  • Loading branch information
butschster authored Mar 21, 2023
2 parents 430c884 + a0bf232 commit 54cc3cb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/RPC/RPC.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,8 @@ public static function create(string $connection, CodecInterface $codec = null):
* @return RPCInterface
*
* @psalm-suppress UndefinedClass
* @psalm-suppress DeprecatedMethod
* @deprecated
*/
public static function fromEnvironment(EnvironmentInterface $env, CodecInterface $codec = null): RPCInterface
{
Expand All @@ -125,6 +127,8 @@ public static function fromEnvironment(EnvironmentInterface $env, CodecInterface
* @return RPCInterface
*
* @psalm-suppress UndefinedClass
* @psalm-suppress DeprecatedMethod
* @deprecated
*/
public static function fromGlobals(CodecInterface $codec = null): RPCInterface
{
Expand Down

0 comments on commit 54cc3cb

Please sign in to comment.