Skip to content

Commit

Permalink
Fixed type returned by _getPushTimeout, cast result from _getWaitTime… (
Browse files Browse the repository at this point in the history
#10)

* Fixed type returned by _getPushTimeout, cast result from _getWaitTime to a float

* It's actually a float
  • Loading branch information
rgooding authored and TomK committed Sep 19, 2017
1 parent ab6f636 commit fa935fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Provider/Amqp/AmqpQueueProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ protected function _getWaitTime()
{
if($this->_waitTime === null)
{
$this->_waitTime = $this->config()->getItem('wait_time', 30);
$this->_waitTime = (float)$this->config()->getItem('wait_time', 30);
}
return $this->_waitTime;
}
Expand All @@ -330,7 +330,7 @@ protected function _getPublishConfirm()

protected function _getPushTimeout()
{
return (bool)$this->config()->getItem('push_timeout', 0);
return (float)$this->config()->getItem('push_timeout', 0);
}

protected function _getRoutingKey()
Expand Down

0 comments on commit fa935fb

Please sign in to comment.