[HttpClient] Added missing sprintf

It was supposed to be there.
This commit is contained in:
Igor Tarasov 2020-01-07 23:22:51 +03:00 committed by GitHub
parent 47a866bf7b
commit 08c1481b88
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -323,7 +323,7 @@ trait ResponseTrait
}
if ('' !== $chunk && null !== $response->content && \strlen($chunk) !== fwrite($response->content, $chunk)) {
$multi->handlesActivity[$j] = [null, new TransportException('Failed writing %d bytes to the response buffer.', \strlen($chunk))];
$multi->handlesActivity[$j] = [null, new TransportException(sprintf('Failed writing %d bytes to the response buffer.', \strlen($chunk)))];
continue;
}