1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-05 19:42:38 +02:00

Update libs

This commit is contained in:
Daniel Neto 2024-01-09 12:45:14 -03:00
parent 0e860cc473
commit f88b25c181
12716 changed files with 137183 additions and 39890 deletions

View file

@ -43,8 +43,8 @@ final class HttpClientDataCollector extends DataCollector implements LateDataCol
public function lateCollect()
{
$this->data['request_count'] = 0;
$this->data['error_count'] = 0;
$this->data['request_count'] = $this->data['request_count'] ?? 0;
$this->data['error_count'] = $this->data['error_count'] ?? 0;
$this->data += ['clients' => []];
foreach ($this->clients as $name => $client) {
@ -59,7 +59,8 @@ final class HttpClientDataCollector extends DataCollector implements LateDataCol
$this->data['clients'][$name]['traces'] = array_merge($this->data['clients'][$name]['traces'], $traces);
$this->data['request_count'] += \count($traces);
$this->data['error_count'] += $this->data['clients'][$name]['error_count'] += $errorCount;
$this->data['error_count'] += $errorCount;
$this->data['clients'][$name]['error_count'] += $errorCount;
$client->reset();
}