Skip to content

Commit 8f99090

Browse files
committed
BC fix: Allow mixed content in POST and PATCH
1 parent 77c6483 commit 8f99090

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/ApiClient/TicketparkApiClient.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public function get(string $path, array $parameters = [], array $headers = []):
8686
return $this->getBrowser()->get(self::ROOT_URL . $path . $params, $this->getDefaultHeaders($headers));
8787
}
8888

89-
public function post(string $path, string $content = '', array $headers = []): Response
89+
public function post(string $path, mixed $content = '', array $headers = []): Response
9090
{
9191
return $this->getBrowser()->post(self::ROOT_URL . $path, $this->getDefaultHeaders($headers), json_encode($content, JSON_THROW_ON_ERROR));
9292
}
@@ -101,7 +101,7 @@ public function head($path, array $parameters = [], array $headers = []): Respon
101101
return $this->getBrowser()->head(self::ROOT_URL . $path . $params, $this->getDefaultHeaders($headers));
102102
}
103103

104-
public function patch(string $path, string $content = '', array $headers = []): Response
104+
public function patch(string $path, mixed $content = '', array $headers = []): Response
105105
{
106106
return $this->getBrowser()->patch(self::ROOT_URL . $path, $this->getDefaultHeaders($headers), json_encode($content, JSON_THROW_ON_ERROR));
107107
}

0 commit comments

Comments
 (0)