From a1e72e2a41748e086eb60e3ab3fc55278a479d6b Mon Sep 17 00:00:00 2001 From: "linh.nguyen.duy" Date: Mon, 10 Jun 2019 07:11:29 +0700 Subject: [PATCH] Cast int for redelivery_delay and polling_interval --- pkg/dbal/DbalContext.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/dbal/DbalContext.php b/pkg/dbal/DbalContext.php index f6119481c..c775efc02 100644 --- a/pkg/dbal/DbalContext.php +++ b/pkg/dbal/DbalContext.php @@ -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;