Skip to content

Commit 807f6f1

Browse files
author
Sander de Vos
committed
Shipping methods bug fixed
1 parent 36e655c commit 807f6f1

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/Sendcloud.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,7 @@ public function parcelStatuses(): array
5252

5353
public function shippingMethods(array $optionalParameters = []): array
5454
{
55-
$query = http_build_query($optionalParameters);
56-
57-
$endpoint = self::SHIPPING_METHODS_ENDPOINT.'?'.$query;
58-
59-
return $this->request('get', $endpoint);
55+
return $this->request('get', self::SHIPPING_METHODS_ENDPOINT, $optionalParameters);
6056
}
6157

6258
public function download(string $url): string

0 commit comments

Comments
 (0)