8000 bug #35672 [HttpClient] fix HttpClientDataCollector when handling can… · symfony/symfony@c895a40 · GitHub
[go: up one dir, main page]

Skip to content

Commit c895a40

Browse files
bug #35672 [HttpClient] fix HttpClientDataCollector when handling canceled responses (thematchless)
This PR was merged into the 4.4 branch. Discussion ---------- [HttpClient] fix HttpClientDataCollector when handling canceled responses | Q | A | ------------- | --- | Branch? | 4.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | - | License | MIT | Doc PR | - small addition to the already merged #35562 Commits ------- 7088ef7 [HttpClient] fix HttpClientDataCollector when handling canceled responses
2 parents 48272f0 + 7088ef7 commit c895a40

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/HttpClient/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)
0