Merge pull request #41 from scottmotte/master
It needs to go to root namespace
This commit is contained in:
@@ -141,7 +141,7 @@ class Unirest
|
|||||||
|
|
||||||
foreach ($arrays AS $key => $value) {
|
foreach ($arrays AS $key => $value) {
|
||||||
$k = isset($prefix) ? $prefix . '[' . $key . ']' : $key;
|
$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);
|
Unirest::http_build_query_for_curl($value, $new, $k);
|
||||||
} else {
|
} else {
|
||||||
$new[$k] = $value;
|
$new[$k] = $value;
|
||||||
|
|||||||
Reference in New Issue
Block a user