Skip to content

Commit 9cbc4ab

Browse files
authored
Merge pull request #896 from linh4github/master
Cast int for redelivery_delay and polling_interval
2 parents e37dac6 + a1e72e2 commit 9cbc4ab

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)