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

Appearance settings

Commit e3aa78f

Browse filesBrowse files
committed
[HttpClient] Adjust AmpResponse to the stricter trait handling in php 8.
1 parent 6868f6c commit e3aa78f
Copy full SHA for e3aa78f

File tree

1 file changed

+7
-2
lines changed
Filter options

1 file changed

+7
-2
lines changed

‎src/Symfony/Component/HttpClient/Response/AmpResponse.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/HttpClient/Response/AmpResponse.php
+7-2Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.