diff --git a/src/Curl/Curl.php b/src/Curl/Curl.php index 8f7656f..676ddd3 100644 --- a/src/Curl/Curl.php +++ b/src/Curl/Curl.php @@ -880,7 +880,7 @@ class Curl */ public function setPort($port) { - $this->setOpt(CURLOPT_PORT, intval($port)); + $this->setOpt(CURLOPT_PORT, (int) $port); } /** diff --git a/src/Curl/MultiCurl.php b/src/Curl/MultiCurl.php index 6088280..79ec568 100755 --- a/src/Curl/MultiCurl.php +++ b/src/Curl/MultiCurl.php @@ -504,7 +504,7 @@ class MultiCurl */ public function setPort($port) { - $this->setOpt(CURLOPT_PORT, intval($port)); + $this->setOpt(CURLOPT_PORT, (int) $port); } /**