Skip to content

Commit

Permalink
[HttpClient] Adjust AmpResponse to the stricter trait handling in php 8.
Browse files Browse the repository at this point in the history
  • Loading branch information
derrabus committed May 24, 2020
1 parent 6868f6c commit e3aa78f
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/Symfony/Component/HttpClient/Response/AmpResponse.php
Expand Up @@ -25,6 +25,7 @@
use Symfony\Component\HttpClient\HttpClientTrait;
use Symfony\Component\HttpClient\Internal\AmpBody;
use Symfony\Component\HttpClient\Internal\AmpClientState;
use Symfony\Component\HttpClient\Internal\ClientState;
use Symfony\Contracts\HttpClient\ResponseInterface;

/**
Expand Down Expand Up @@ -143,8 +144,10 @@ private static function schedule(self $response, array &$runningResponses): void

/**
* {@inheritdoc}
*
* @param AmpClientState $multi
*/
private static function perform(AmpClientState $multi, array &$responses = null): void
private static function perform(ClientState $multi, array &$responses = null): void
{
if ($responses) {
foreach ($responses as $response) {
Expand All @@ -163,8 +166,10 @@ private static function perform(AmpClientState $multi, array &$responses = null)

/**
* {@inheritdoc}
*
* @param AmpClientState $multi
*/
private static function select(AmpClientState $multi, float $timeout): int
private static function select(ClientState $multi, float $timeout): int
{
$selected = 1;
$delay = Loop::delay(1000 * $timeout, static function () use (&$selected) {
Expand Down

0 comments on commit e3aa78f

Please sign in to comment.