From 3951a37c2adda507abac7016718bd64c4fc3c0fa Mon Sep 17 00:00:00 2001 From: scottmotte Date: Fri, 4 Apr 2014 12:24:36 -0700 Subject: [PATCH] It needs to go to root namespace --- lib/Unirest/Unirest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Unirest/Unirest.php b/lib/Unirest/Unirest.php index 2229779..8cb109e 100644 --- a/lib/Unirest/Unirest.php +++ b/lib/Unirest/Unirest.php @@ -141,7 +141,7 @@ class Unirest foreach ($arrays AS $key => $value) { $k = isset($prefix) ? $prefix . '[' . $key . ']' : $key; - if (!$value instanceof CURLFile AND (is_array($value) OR is_object($value))) { + if (!$value instanceof \CURLFile AND (is_array($value) OR is_object($value))) { Unirest::http_build_query_for_curl($value, $new, $k); } else { $new[$k] = $value;