Skip to content

Commit 09b5057

Browse files
committed
fix: wrong param type
1 parent def68a7 commit 09b5057

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/API/Subscription.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public function find(string $id): array
6565
*/
6666
public function enable(string $code, string $token): array
6767
{
68-
$response = $this->httpClient->put("/subscription/enable", [
68+
$response = $this->httpClient->post("/subscription/enable", [
6969
'json' => json_encode(['code' => $code, 'token' => $token]),
7070
]);
7171

@@ -81,7 +81,7 @@ public function enable(string $code, string $token): array
8181
*/
8282
public function disable(string $code, string $token): array
8383
{
84-
$response = $this->httpClient->put("/subscription/disable", [
84+
$response = $this->httpClient->post("/subscription/disable", [
8585
'json' => json_encode(['code' => $code, 'token' => $token]),
8686
]);
8787

0 commit comments

Comments
 (0)