Skip to content

Commit b4ad124

Browse files
authored
fix: parenthesis missing allowed invalid delays
Missing parenthesis here would allow the delay to be a fraction of a second and cause an error if the delay provided was not a multiple of 1000.
1 parent 941d4c8 commit b4ad124

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/sqs/SqsProducer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public function send(Destination $destination, Message $message): void
5656
];
5757

5858
if (null !== $this->deliveryDelay) {
59-
$arguments['DelaySeconds'] = (int) $this->deliveryDelay / 1000;
59+
$arguments['DelaySeconds'] = (int) ($this->deliveryDelay / 1000);
6060
}
6161

6262
if ($message->getDelaySeconds()) {

0 commit comments

Comments
 (0)