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
-------

7088ef78f7 [HttpClient] fix HttpClientDataCollector when handling canceled responses
This commit is contained in:
Nicolas Grekas 2020-02-11 11:44:52 +01:00
commit c895a400d9

View File

@ -120,7 +120,7 @@ final class HttpClientDataCollector extends DataCollector implements LateDataCol
unset($info['http_method']);
}
if ($trace['url'] === $info['url']) {
if (($info['url'] ?? null) === $trace['url']) {
unset($info['url']);
}