mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-05 02:39:46 +02:00
Update dependencies.
This commit is contained in:
parent
43c00721ca
commit
feb9ac315b
11243 changed files with 338413 additions and 11922 deletions
|
@ -27,13 +27,14 @@ use Symfony\Contracts\Service\ResetInterface;
|
|||
final class TraceableHttpClient implements HttpClientInterface, ResetInterface, LoggerAwareInterface
|
||||
{
|
||||
private $client;
|
||||
private $tracedRequests = [];
|
||||
private $stopwatch;
|
||||
private $tracedRequests;
|
||||
|
||||
public function __construct(HttpClientInterface $client, Stopwatch $stopwatch = null)
|
||||
{
|
||||
$this->client = $client;
|
||||
$this->stopwatch = $stopwatch;
|
||||
$this->tracedRequests = new \ArrayObject();
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -84,7 +85,7 @@ final class TraceableHttpClient implements HttpClientInterface, ResetInterface,
|
|||
|
||||
public function getTracedRequests(): array
|
||||
{
|
||||
return $this->tracedRequests;
|
||||
return $this->tracedRequests->getArrayCopy();
|
||||
}
|
||||
|
||||
public function reset()
|
||||
|
@ -93,7 +94,7 @@ final class TraceableHttpClient implements HttpClientInterface, ResetInterface,
|
|||
$this->client->reset();
|
||||
}
|
||||
|
||||
$this->tracedRequests = [];
|
||||
$this->tracedRequests->exchangeArray([]);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue