Skip to content

Commit

Permalink
Cast int for redelivery_delay and polling_interval
Browse files Browse the repository at this point in the history
  • Loading branch information
linh.nguyen.duy committed Jun 10, 2019
1 parent 359fb79 commit a1e72e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/dbal/DbalContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,11 +113,11 @@ public function createConsumer(Destination $destination): Consumer
$consumer = new DbalConsumer($this, $destination);

if (isset($this->config['polling_interval'])) {
$consumer->setPollingInterval($this->config['polling_interval']);
$consumer->setPollingInterval((int) $this->config['polling_interval']);
}

if (isset($this->config['redelivery_delay'])) {
$consumer->setRedeliveryDelay($this->config['redelivery_delay']);
$consumer->setRedeliveryDelay((int) $this->config['redelivery_delay']);
}

return $consumer;
Expand Down

0 comments on commit a1e72e2

Please sign in to comment.