Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc4979e7

Browse files
committed
"debug" is missing if a request failed to even start
1 parent8a26600 commitc4979e7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

‎src/Symfony/Component/HttpClient/DataCollector/HttpClientDataCollector.php‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,9 @@ private function collectOnClient(TraceableHttpClient $client): array
163163
unset($traces[$i]['info']);// break PHP reference used by TraceableHttpClient
164164
$traces[$i]['info'] =$this->cloneVar($info);
165165
$traces[$i]['options'] =$this->cloneVar($trace['options']);
166-
$traces[$i]['curlCommand'] =$this->getCurlCommand($trace);
166+
if (isset($trace['info']['debug'])) {
167+
$traces[$i]['curlCommand'] =$this->getCurlCommand($trace);
168+
}
167169
}
168170

169171
return [$errorCount,$traces];

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp