From e3cd4bc0834080dde853dfb2c8c3356950100cd2 Mon Sep 17 00:00:00 2001 From: aditya-astra <69592695+aditya-astra@users.noreply.github.com> Date: Thu, 15 Apr 2021 19:20:57 +0530 Subject: [PATCH 1/2] Update Curl.php --- src/ReCaptcha/RequestMethod/Curl.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ReCaptcha/RequestMethod/Curl.php b/src/ReCaptcha/RequestMethod/Curl.php index eb99842..8884ec7 100644 --- a/src/ReCaptcha/RequestMethod/Curl.php +++ b/src/ReCaptcha/RequestMethod/Curl.php @@ -47,7 +47,7 @@ class Curl */ public function init($url = null) { - return curl_init($url); + return \curl_init($url); } /** From ec48ebb92e0a6af20c77e74866caa6d21677b53f Mon Sep 17 00:00:00 2001 From: aditya-astra <69592695+aditya-astra@users.noreply.github.com> Date: Thu, 15 Apr 2021 20:30:34 +0530 Subject: [PATCH 2/2] Update Curl.php --- src/ReCaptcha/RequestMethod/Curl.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ReCaptcha/RequestMethod/Curl.php b/src/ReCaptcha/RequestMethod/Curl.php index 8884ec7..6455c29 100644 --- a/src/ReCaptcha/RequestMethod/Curl.php +++ b/src/ReCaptcha/RequestMethod/Curl.php @@ -34,6 +34,8 @@ namespace ReCaptcha\RequestMethod; +use function \curl_init as root_curl; + /** * Convenience wrapper around the cURL functions to allow mocking. */ @@ -47,7 +49,7 @@ class Curl */ public function init($url = null) { - return \curl_init($url); + return root_curl($url); } /**