Skip to content

Commit bc35419

Browse files
committed
[HttpClient] Adjust AmpResponse to the stricter trait handling in php 8.
1 parent 3b21bf6 commit bc35419

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

Response/AmpResponse.php

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
use Symfony\Component\HttpClient\HttpClientTrait;
2626
use Symfony\Component\HttpClient\Internal\AmpBody;
2727
use Symfony\Component\HttpClient\Internal\AmpClientState;
28+
use Symfony\Component\HttpClient\Internal\ClientState;
2829
use Symfony\Contracts\HttpClient\ResponseInterface;
2930

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

144145
/**
145146
* {@inheritdoc}
147+
*
148+
* @param AmpClientState $multi
146149
*/
147-
private static function perform(AmpClientState $multi, array &$responses = null): void
150+
private static function perform(ClientState $multi, array &$responses = null): void
148151
{
149152
if ($responses) {
150153
foreach ($responses as $response) {
@@ -163,8 +166,10 @@ private static function perform(AmpClientState $multi, array &$responses = null)
163166

164167
/**
165168
* {@inheritdoc}
169+
*
170+
* @param AmpClientState $multi
166171
*/
167-
private static function select(AmpClientState $multi, float $timeout): int
172+
private static function select(ClientState $multi, float $timeout): int
168173
{
169174
$selected = 1;
170175
$delay = Loop::delay(1000 * $timeout, static function () use (&$selected) {

0 commit comments

Comments
 (0)