mirror of
https://github.com/php-curl-class/php-curl-class.git
synced 2026-08-24 12:59:21 +00:00
Modernize type casting
This commit is contained in:
+1
-1
@@ -880,7 +880,7 @@ class Curl
|
||||
*/
|
||||
public function setPort($port)
|
||||
{
|
||||
$this->setOpt(CURLOPT_PORT, intval($port));
|
||||
$this->setOpt(CURLOPT_PORT, (int) $port);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -504,7 +504,7 @@ class MultiCurl
|
||||
*/
|
||||
public function setPort($port)
|
||||
{
|
||||
$this->setOpt(CURLOPT_PORT, intval($port));
|
||||
$this->setOpt(CURLOPT_PORT, (int) $port);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user