From 2fc7e371205dc1938e72adc1992730f01bfcf54c Mon Sep 17 00:00:00 2001 From: Konstantin Grachev Date: Wed, 9 Jun 2021 15:30:40 +0300 Subject: [PATCH] Producer::publish $delay must be positive-int or zero --- src/Producer.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Producer.php b/src/Producer.php index d96f4eb..722a2eb 100644 --- a/src/Producer.php +++ b/src/Producer.php @@ -44,6 +44,8 @@ final class Producer extends Connection /** * @param array|string $body * + * @psalm-param positive-int|0 $delay + * * @return Promise */ public function publish(string $topic, string | array $body, int $delay = 0): Promise