From 31363bd692aa7ee4002b44d2774d86ff912ffffe Mon Sep 17 00:00:00 2001 From: "Roland Franssen :)" Date: Thu, 23 Nov 2023 11:18:21 +0100 Subject: [PATCH] Update info() return types --- src/Stream/Stream.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Stream/Stream.php b/src/Stream/Stream.php index df9c191..a0284d1 100644 --- a/src/Stream/Stream.php +++ b/src/Stream/Stream.php @@ -7,6 +7,7 @@ use Basis\Nats\Client; use Basis\Nats\Consumer\Consumer; use Basis\Nats\Consumer\Configuration as ConsumerConfiguration; +use Basis\Nats\Message\Payload; class Stream { @@ -88,6 +89,9 @@ public function getName(): string return $this->configuration->getName(); } + /** + * @return Payload + */ public function info() { return $this->client->api("STREAM.INFO." . $this->getName());