Skip to content

Commit 99e42b5

Browse files
committed
Remove FQCN type hints on properties
1 parent 6309807 commit 99e42b5

27 files changed

+48
-51
lines changed

AmpHttpClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ final class AmpHttpClient implements HttpClientInterface, LoggerAwareInterface,
4343
use LoggerAwareTrait;
4444

4545
private array $defaultOptions = self::OPTIONS_DEFAULTS;
46-
private AmpClientState $multi;
46+
private $multi;
4747

4848
/**
4949
* @param array $defaultOptions Default requests' options

CachingHttpClient.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ class CachingHttpClient implements HttpClientInterface, ResetInterface
3535
{
3636
use HttpClientTrait;
3737

38-
private HttpClientInterface $client;
39-
private HttpCache $cache;
38+
private $client;
39+
private $cache;
4040
private array $defaultOptions = self::OPTIONS_DEFAULTS;
4141

4242
public function __construct(HttpClientInterface $client, StoreInterface $store, array $defaultOptions = [])

CurlHttpClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ final class CurlHttpClient implements HttpClientInterface, LoggerAwareInterface,
4848
/**
4949
* An internal object to share state between the client and its responses.
5050
*/
51-
private CurlClientState $multi;
51+
private $multi;
5252

5353
private static array $curlVersion;
5454

DecoratorTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
*/
2424
trait DecoratorTrait
2525
{
26-
private HttpClientInterface $client;
26+
private $client;
2727

2828
public function __construct(HttpClientInterface $client = null)
2929
{

Exception/HttpExceptionTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
*/
2121
trait HttpExceptionTrait
2222
{
23-
private ResponseInterface $response;
23+
private $response;
2424

2525
public function __construct(ResponseInterface $response)
2626
{

HttplugClient.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,16 +58,16 @@
5858
*/
5959
final class HttplugClient implements HttplugInterface, HttpAsyncClient, RequestFactory, StreamFactory, UriFactory, ResetInterface
6060
{
61-
private HttpClientInterface $client;
62-
private ResponseFactoryInterface $responseFactory;
63-
private StreamFactoryInterface $streamFactory;
61+
private $client;
62+
private $responseFactory;
63+
private $streamFactory;
6464

6565
/**
6666
* @var \SplObjectStorage<ResponseInterface, array{RequestInterface, Promise}>|null
6767
*/
6868
private ?\SplObjectStorage $promisePool;
6969

70-
private HttplugWaitLoop $waitLoop;
70+
private $waitLoop;
7171

7272
public function __construct(HttpClientInterface $client = null, ResponseFactoryInterface $responseFactory = null, StreamFactoryInterface $streamFactory = null)
7373
{

Internal/AmpBody.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
*/
2626
class AmpBody implements RequestBody, InputStream
2727
{
28-
private ResourceInputStream|\Closure|string $body;
28+
private $body;
2929
private array $info;
3030
private \Closure $onProgress;
3131
private ?int $offset = 0;

Internal/AmpClientState.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ final class AmpClientState extends ClientState
4949
private \Closure $clientConfigurator;
5050
private int $maxHostConnections;
5151
private int $maxPendingPushes;
52-
private ?LoggerInterface $logger;
52+
private $logger;
5353

5454
public function __construct(?callable $clientConfigurator, int $maxHostConnections, int $maxPendingPushes, ?LoggerInterface &$logger)
5555
{

Internal/CurlClientState.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
namespace Symfony\Component\HttpClient\Internal;
1313

14-
use Psr\Log\LoggerInterface;
1514

1615
/**
1716
* Internal representation of the cURL client's state.
@@ -25,11 +24,11 @@ final class CurlClientState extends ClientState
2524
public \CurlMultiHandle $handle;
2625
/** @var PushedResponse[] */
2726
public array $pushedResponses = [];
28-
public DnsCache $dnsCache;
27+
public $dnsCache;
2928
/** @var float[] */
3029
public array $pauseExpiries = [];
3130
public int $execCounter = \PHP_INT_MIN;
32-
public ?LoggerInterface $logger = null;
31+
public $logger = null;
3332

3433
public function __construct()
3534
{

Internal/HttplugWaitLoop.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@
3030
*/
3131
final class HttplugWaitLoop
3232
{
33-
private HttpClientInterface $client;
33+
private $client;
3434
private ?\SplObjectStorage $promisePool;
35-
private ResponseFactoryInterface $responseFactory;
36-
private StreamFactoryInterface $streamFactory;
35+
private $responseFactory;
36+
private $streamFactory;
3737

3838
/**
3939
* @param \SplObjectStorage<ResponseInterface, array{Psr7RequestInterface, Promise}>|null $promisePool

0 commit comments

Comments
 (0)