Skip to content

Commit a1e72e2

Browse files
author
linh.nguyen.duy
committed
Cast int for redelivery_delay and polling_interval
1 parent 359fb79 commit a1e72e2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/dbal/DbalContext.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -113,11 +113,11 @@ public function createConsumer(Destination $destination): Consumer
113113
$consumer = new DbalConsumer($this, $destination);
114114

115115
if (isset($this->config['polling_interval'])) {
116-
$consumer->setPollingInterval($this->config['polling_interval']);
116+
$consumer->setPollingInterval((int) $this->config['polling_interval']);
117117
}
118118

119119
if (isset($this->config['redelivery_delay'])) {
120-
$consumer->setRedeliveryDelay($this->config['redelivery_delay']);
120+
$consumer->setRedeliveryDelay((int) $this->config['redelivery_delay']);
121121
}
122122

123123
return $consumer;

0 commit comments

Comments
 (0)