Skip to content

Commit 2bfa42e

Browse files
authored
fix comment on QueueConsumer constructor
default timeout is 10000 milliseconds and this constructor will not accept float
1 parent 5b4df9e commit 2bfa42e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/enqueue/Consumption/QueueConsumer.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ final class QueueConsumer implements QueueConsumerInterface
4343
private $boundProcessors;
4444

4545
/**
46-
* @var int|float in milliseconds
46+
* @var int in milliseconds
4747
*/
4848
private $receiveTimeout;
4949

@@ -59,7 +59,7 @@ final class QueueConsumer implements QueueConsumerInterface
5959

6060
/**
6161
* @param BoundProcessor[] $boundProcessors
62-
* @param int|float $receiveTimeout the time in milliseconds queue consumer waits for a message (10 ms by default)
62+
* @param int $receiveTimeout the time in milliseconds queue consumer waits for a message (10000 ms by default)
6363
*/
6464
public function __construct(
6565
InteropContext $interopContext,

0 commit comments

Comments
 (0)