Skip to content

Commit b4dad5a

Browse files
committed
[HttpClient] fix HttpClientDataCollector when handling canceled responses
1 parent 456f71b commit b4dad5a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

DataCollector/HttpClientDataCollector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ private function collectOnClient(TraceableHttpClient $client): array
120120
unset($info['http_method']);
121121
}
122122

123-
if ($trace['url'] === $info['url']) {
123+
if (($info['url'] ?? null) === $trace['url']) {
124124
unset($info['url']);
125125
}
126126

0 commit comments

Comments
 (0)