Skip to content

Commit 31aa70a

Browse files
committed
rename variable
1 parent 026585e commit 31aa70a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/Tracing/HttpClient/AbstractTraceableResponse.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -103,13 +103,13 @@ public static function stream(HttpClientInterface $client, iterable $responses,
103103
/** @var \SplObjectStorage<ResponseInterface, AbstractTraceableResponse> $traceableMap */
104104
$traceableMap = new \SplObjectStorage();
105105

106-
foreach ($responses as $r) {
107-
if (!$r instanceof self) {
108-
throw new \TypeError(sprintf('"%s::stream()" expects parameter 1 to be an iterable of TraceableResponse objects, "%s" given.', TraceableHttpClient::class, get_debug_type($r)));
106+
foreach ($responses as $response) {
107+
if (!$response instanceof self) {
108+
throw new \TypeError(sprintf('"%s::stream()" expects parameter 1 to be an iterable of TraceableResponse objects, "%s" given.', TraceableHttpClient::class, get_debug_type($response)));
109109
}
110110

111-
$traceableMap[$r->response] = $r;
112-
$wrappedResponses[] = $r->response;
111+
$traceableMap[$response->response] = $response;
112+
$wrappedResponses[] = $response->response;
113113
}
114114

115115
foreach ($client->stream($wrappedResponses, $timeout) as $r => $chunk) {

0 commit comments

Comments
 (0)