Skip to content

Commit

Permalink
Modify type
Browse files Browse the repository at this point in the history
  • Loading branch information
stelin committed May 28, 2019
1 parent a5bef01 commit 6732921
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/RedisDb.php
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ public function getHost(): string
*/
public function getPort(): int
{
return $this->port;
return (int)$this->port;
}

/**
Expand All @@ -225,7 +225,7 @@ public function getDatabase(): int
*/
public function getTimeout(): float
{
return $this->timeout;
return (int)$this->timeout;
}

/**
Expand All @@ -241,15 +241,15 @@ public function getPassword(): string
*/
public function getRetryInterval(): int
{
return $this->retryInterval;
return (int)$this->retryInterval;
}

/**
* @return int
*/
public function getReadTimeout(): int
{
return $this->readTimeout;
return (int)$this->readTimeout;
}

/**
Expand Down

0 comments on commit 6732921

Please sign in to comment.