Skip to content

Commit cb8f0ea

Browse files
authored
Fix redefining variable as request is immutable
1 parent e672619 commit cb8f0ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Mta.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ protected function do_post_request($path, $json_data): string
105105
{
106106
$request = $this->messageFactory->createRequest('POST', sprintf('%s/%s', $this->server->getBaseUri(), $path), [], $json_data);
107107
$auth = new BasicAuth($this->credential->getUser(), $this->credential->getPassword());
108-
$auth->authenticate($request);
108+
$request = $auth->authenticate($request);
109109

110110
$response = $this->httpClient->sendRequest($request);
111111
HttpStatusVerification::validateStatus($response);

0 commit comments

Comments
 (0)