From 4353baa2f2fd017e85f721a94cffdedacc376992 Mon Sep 17 00:00:00 2001 From: Zach Borboa Date: Mon, 26 Jul 2021 00:14:52 -0400 Subject: [PATCH] Fix floor() returning float instead of integer --- src/Curl/Curl.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Curl/Curl.php b/src/Curl/Curl.php index 676ddd3..980bef5 100644 --- a/src/Curl/Curl.php +++ b/src/Curl/Curl.php @@ -491,7 +491,7 @@ class Curl } $this->httpStatusCode = $this->getInfo(CURLINFO_HTTP_CODE); - $this->httpError = in_array(floor($this->httpStatusCode / 100), [4, 5], true); + $this->httpError = in_array((int) floor($this->httpStatusCode / 100), [4, 5], true); $this->error = $this->curlError || $this->httpError; $this->errorCode = $this->error ? ($this->curlError ? $this->curlErrorCode : $this->httpStatusCode) : 0;