Skip to content

Commit

Permalink
Fixed idle timeout default
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasvargiu committed Jan 10, 2018
1 parent 55b7d00 commit b1d8d6a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/Options/Consumer.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ class Consumer extends AbstractOptions
*/
protected $callback;
/**
* @var null|int
* @var int
*/
protected $idleTimeout;
protected $idleTimeout = 0;
/**
* @var null|string
*/
Expand Down Expand Up @@ -132,17 +132,17 @@ public function setCallback($callback): void
}

/**
* @return null|int
* @return int
*/
public function getIdleTimeout(): ?int
public function getIdleTimeout(): int
{
return $this->idleTimeout;
}

/**
* @param null|int $idleTimeout
* @param int $idleTimeout
*/
public function setIdleTimeout(?int $idleTimeout): void
public function setIdleTimeout(int $idleTimeout): void
{
$this->idleTimeout = $idleTimeout;
}
Expand Down

0 comments on commit b1d8d6a

Please sign in to comment.