Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Commit

Permalink
Cleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
klimser committed Jan 14, 2019
1 parent 1c9f249 commit a734185
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Client/Adapter/Curl.php
Expand Up @@ -209,7 +209,7 @@ public function connect($host, $port = 80, $secure = false)
$connectTimeout = null;
}

if ($connectTimeout !== null && ! is_int($connectTimeout) && ! is_numeric($connectTimeout)) {
if ($connectTimeout !== null && ! is_numeric($connectTimeout)) {
throw new AdapterException\InvalidArgumentException(sprintf(
'integer or numeric string expected, got %s',
gettype($connectTimeout)
Expand Down
2 changes: 1 addition & 1 deletion src/Client/Adapter/Socket.php
Expand Up @@ -263,7 +263,7 @@ public function connect($host, $port = 80, $secure = false)
$connectTimeout = $this->config['timeout'];
}

if ($connectTimeout !== null && ! is_int($connectTimeout) && ! is_numeric($connectTimeout)) {
if ($connectTimeout !== null && ! is_numeric($connectTimeout)) {
throw new AdapterException\InvalidArgumentException(sprintf(
'integer or numeric string expected, got %s',
gettype($connectTimeout)
Expand Down

0 comments on commit a734185

Please sign in to comment.