Skip to content

Commit 986c424

Browse files
authored
[HttpClient] Added missing sprintf
It was supposed to be there.
1 parent b425007 commit 986c424

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Response/ResponseTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ public static function stream(iterable $responses, float $timeout = null): \Gene
323323
}
324324

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

0 commit comments

Comments
 (0)