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

Commitaba0de3

Browse files
committed
returning null instead
1 parentc4979e7 commitaba0de3

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -163,16 +163,18 @@ 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-
if (isset($trace['info']['debug'])) {
167-
$traces[$i]['curlCommand'] =$this->getCurlCommand($trace);
168-
}
166+
$traces[$i]['curlCommand'] =$this->getCurlCommand($trace);
169167
}
170168

171169
return [$errorCount,$traces];
172170
}
173171

174172
privatefunctiongetCurlCommand(array$trace): ?string
175173
{
174+
if (!isset($trace['info']['debug'])) {
175+
returnnull;
176+
}
177+
176178
$debug =explode("\n",$trace['info']['debug']);
177179
$url =$trace['url'];
178180
$command = ['curl','--compressed'];

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp