bug #33692 [HttpClient] fix undefined index access (nicolas-grekas)
This PR was merged into the 4.4 branch.
Discussion
----------
[HttpClient] fix undefined index access
| Q | A
| ------------- | ---
| Branch? | 4.4
| Bug fix? | yes
| New feature? | no
| Deprecations? | no
| Tickets | -
| License | MIT
| Doc PR | -
When the request fails.
Commits
-------
7fce184d25
[HttpClient] fix undefined index access
This commit is contained in:
commit
042f5b5a9d
@ -113,7 +113,7 @@ final class HttpClientDataCollector extends DataCollector
|
||||
}
|
||||
|
||||
$info = $trace['info'];
|
||||
$traces[$i]['http_code'] = $info['http_code'];
|
||||
$traces[$i]['http_code'] = $info['http_code'] ?? 0;
|
||||
|
||||
unset($info['filetime'], $info['http_code'], $info['ssl_verify_result'], $info['content_type']);
|
||||
|
||||
|
Reference in New Issue
Block a user