diff --git a/src/RPC/RPC.php b/src/RPC/RPC.php index a312a51..09f6b05 100644 --- a/src/RPC/RPC.php +++ b/src/RPC/RPC.php @@ -49,6 +49,7 @@ public function __construct(RelayInterface $relay, CodecInterface $codec = null) { $this->relay = $relay; $this->codec = $codec ?? new JsonCodec(); + /** @psalm-suppress DeprecatedProperty */ $this->hasSequence = \method_exists($this->relay, 'getNextSequence'); } @@ -83,6 +84,7 @@ public function withCodec(CodecInterface $codec): RPCInterface */ public function call(string $method, $payload, $options = null) { + /** @psalm-suppress DeprecatedMethod */ $seq = $this->getNextSequence(); $this->relay->send($this->packFrame($method, $payload, $seq)); @@ -187,6 +189,7 @@ private function packFrame(string $method, $payload, int $seq): Frame */ private function getNextSequence(): int { + /** @psalm-suppress DeprecatedProperty */ return $this->hasSequence ? $this->relay->getNextSequence() : self::$seq; } }