From a734185344c5c77011272e99b978d139b92605c3 Mon Sep 17 00:00:00 2001 From: "Sergey.Klimov" Date: Mon, 14 Jan 2019 19:14:15 +0300 Subject: [PATCH] Cleaning --- src/Client/Adapter/Curl.php | 2 +- src/Client/Adapter/Socket.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Client/Adapter/Curl.php b/src/Client/Adapter/Curl.php index 3ea492078..a0f8a5364 100644 --- a/src/Client/Adapter/Curl.php +++ b/src/Client/Adapter/Curl.php @@ -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) diff --git a/src/Client/Adapter/Socket.php b/src/Client/Adapter/Socket.php index 7917bd07f..a56cfaa0a 100644 --- a/src/Client/Adapter/Socket.php +++ b/src/Client/Adapter/Socket.php @@ -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)