Skip to content

Commit 7da4666

Browse files
committed
Fix dbal delivery delay to always keep integer
1 parent 62370e4 commit 7da4666

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/dbal/DbalProducer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ public function send(Destination $destination, Message $message): void
111111
throw new \LogicException(sprintf('TimeToLive must be positive integer but got: "%s"', $timeToLive));
112112
}
113113

114-
$dbalMessage['time_to_live'] = time() + (int) $timeToLive / 1000;
114+
$dbalMessage['time_to_live'] = time() + (int) ($timeToLive / 1000);
115115
}
116116

117117
try {

0 commit comments

Comments
 (0)