From 73dfde67e22ef66bf1311056a67301bef4750211 Mon Sep 17 00:00:00 2001 From: Zach Borboa Date: Sun, 25 Jul 2021 23:53:32 -0400 Subject: [PATCH] Modernize type casting --- src/Curl/Curl.php | 2 +- src/Curl/MultiCurl.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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); } /**