File tree Expand file tree Collapse file tree 2 files changed +8
-13
lines changed Expand file tree Collapse file tree 2 files changed +8
-13
lines changed Original file line number Diff line number Diff line change 20
20
*/
21
21
final class NativeClientState extends ClientState
22
22
{
23
- /** @var int */
24
- public $ id ;
25
- /** @var int */
26
- public $ maxHostConnections = \PHP_INT_MAX ;
27
- /** @var int */
28
- public $ responseCount = 0 ;
23
+ public int $ id ;
24
+ public int $ maxHostConnections = \PHP_INT_MAX ;
25
+ public int $ responseCount = 0 ;
29
26
/** @var string[] */
30
- public $ dnsCache = [];
31
- /** @var bool */
32
- public $ sleep = false ;
27
+ public array $ dnsCache = [];
28
+ public bool $ sleep = false ;
33
29
/** @var int[] */
34
- public $ hosts = [];
30
+ public array $ hosts = [];
35
31
36
32
public function __construct ()
37
33
{
Original file line number Diff line number Diff line change @@ -25,8 +25,7 @@ class StreamWrapper
25
25
/** @var resource|string|null */
26
26
public $ context ;
27
27
28
- /** @var HttpClientInterface */
29
- private $ client ;
28
+ private HttpClientInterface |ResponseInterface $ client ;
30
29
31
30
private ResponseInterface $ response ;
32
31
@@ -37,7 +36,7 @@ class StreamWrapper
37
36
private $ handle ;
38
37
39
38
private bool $ blocking = true ;
40
- private $ timeout ;
39
+ private ? float $ timeout = null ;
41
40
private bool $ eof = false ;
42
41
private int $ offset = 0 ;
43
42
You can’t perform that action at this time.
0 commit comments