Skip to content

Commit 3f618b3

Browse files
committed
Allowing mixed body parameter
1 parent 878478a commit 3f618b3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Traits/EndpointTrait.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,10 @@ protected function addQueryString(string $url, array $params, array $keys): stri
8888

8989
/**
9090
* Serialize the body using the Content-Type
91+
*
92+
* @param mixed $body
9193
*/
92-
protected function bodySerialize(array $body, string $contentType): string
94+
protected function bodySerialize($body, string $contentType): string
9395
{
9496
if (strpos($contentType, 'application/x-ndjson') !== false) {
9597
return NDJsonSerializer::serialize($body, ['remove_null' => false]);

0 commit comments

Comments
 (0)