diff --git a/src/Teamleader.php b/src/Teamleader.php index fdbca6d..b05e15c 100644 --- a/src/Teamleader.php +++ b/src/Teamleader.php @@ -186,7 +186,7 @@ private function doRequest(string $method, string $uri, array $parameters = []): } $body = $this->streamFactory->createStream($encodedParameters); - $request->withBody($body); + $request = $request->withBody($body); } $response = $this->client->sendRequest($request);