Skip to content

Commit c169d8c

Browse files
authored
Merge pull request #165 from bastiendonjon/master
replace GuzzleHttp\Psr7\build_query by GuzzleHttp\Psr7\Query:build
2 parents 071e0f5 + f69e0b2 commit c169d8c

14 files changed

+245
-245
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"ext-curl": "*",
2323
"ext-json": "*",
2424
"ext-mbstring": "*",
25-
"guzzlehttp/guzzle": "<=7.0.0"
25+
"guzzlehttp/guzzle": "<=7.3.0"
2626
},
2727
"require-dev": {
2828
"phpunit/phpunit": "^4.8",

lib/Api/AccountApi.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ protected function getAccountRequest()
312312

313313
} else {
314314
// for HTTP post (form)
315-
$httpBody = \GuzzleHttp\Psr7\build_query($formParams);
315+
$httpBody = \GuzzleHttp\Psr7\Query::build($formParams);
316316
}
317317
}
318318

@@ -338,7 +338,7 @@ protected function getAccountRequest()
338338
$headers
339339
);
340340

341-
$query = \GuzzleHttp\Psr7\build_query($queryParams);
341+
$query = \GuzzleHttp\Psr7\Query::build($queryParams);
342342
return new Request(
343343
'GET',
344344
$this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''),

lib/Api/AttributesApi.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ protected function createAttributeRequest($attributeCategory, $attributeName, $c
335335

336336
} else {
337337
// for HTTP post (form)
338-
$httpBody = \GuzzleHttp\Psr7\build_query($formParams);
338+
$httpBody = \GuzzleHttp\Psr7\Query::build($formParams);
339339
}
340340
}
341341

@@ -361,7 +361,7 @@ protected function createAttributeRequest($attributeCategory, $attributeName, $c
361361
$headers
362362
);
363363

364-
$query = \GuzzleHttp\Psr7\build_query($queryParams);
364+
$query = \GuzzleHttp\Psr7\Query::build($queryParams);
365365
return new Request(
366366
'POST',
367367
$this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''),
@@ -612,7 +612,7 @@ protected function deleteAttributeRequest($attributeCategory, $attributeName)
612612

613613
} else {
614614
// for HTTP post (form)
615-
$httpBody = \GuzzleHttp\Psr7\build_query($formParams);
615+
$httpBody = \GuzzleHttp\Psr7\Query::build($formParams);
616616
}
617617
}
618618

@@ -638,7 +638,7 @@ protected function deleteAttributeRequest($attributeCategory, $attributeName)
638638
$headers
639639
);
640640

641-
$query = \GuzzleHttp\Psr7\build_query($queryParams);
641+
$query = \GuzzleHttp\Psr7\Query::build($queryParams);
642642
return new Request(
643643
'DELETE',
644644
$this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''),
@@ -872,7 +872,7 @@ protected function getAttributesRequest()
872872

873873
} else {
874874
// for HTTP post (form)
875-
$httpBody = \GuzzleHttp\Psr7\build_query($formParams);
875+
$httpBody = \GuzzleHttp\Psr7\Query::build($formParams);
876876
}
877877
}
878878

@@ -898,7 +898,7 @@ protected function getAttributesRequest()
898898
$headers
899899
);
900900

901-
$query = \GuzzleHttp\Psr7\build_query($queryParams);
901+
$query = \GuzzleHttp\Psr7\Query::build($queryParams);
902902
return new Request(
903903
'GET',
904904
$this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''),
@@ -1163,7 +1163,7 @@ protected function updateAttributeRequest($attributeCategory, $attributeName, $u
11631163

11641164
} else {
11651165
// for HTTP post (form)
1166-
$httpBody = \GuzzleHttp\Psr7\build_query($formParams);
1166+
$httpBody = \GuzzleHttp\Psr7\Query::build($formParams);
11671167
}
11681168
}
11691169

@@ -1189,7 +1189,7 @@ protected function updateAttributeRequest($attributeCategory, $attributeName, $u
11891189
$headers
11901190
);
11911191

1192-
$query = \GuzzleHttp\Psr7\build_query($queryParams);
1192+
$query = \GuzzleHttp\Psr7\Query::build($queryParams);
11931193
return new Request(
11941194
'PUT',
11951195
$this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''),

0 commit comments

Comments
 (0)