Skip to content

Commit

Permalink
Merge pull request php-enqueue#896 from linh4github/master
Browse files Browse the repository at this point in the history
Cast int for redelivery_delay and polling_interval
  • Loading branch information
makasim authored Jun 10, 2019
2 parents e37dac6 + a1e72e2 commit 9cbc4ab
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 9cbc4ab

Please sign in to comment.