Skip to content

Commit c6eb65f

Browse files
committed
Migrate Connection to PHP properties
Relatively straightforward.
1 parent d7e4cd9 commit c6eb65f

File tree

1 file changed

+4
-19
lines changed

1 file changed

+4
-19
lines changed

lib/Fhp/Connection.php

Lines changed: 4 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -7,25 +7,10 @@
77
*/
88
class Connection
99
{
10-
/**
11-
* @var string
12-
*/
13-
protected $url;
14-
15-
/**
16-
* @var resource
17-
*/
18-
protected $curlHandle;
19-
20-
/**
21-
* @var int
22-
*/
23-
protected $timeoutConnect = 15;
24-
25-
/**
26-
* @var int
27-
*/
28-
protected $timeoutResponse = 30;
10+
protected string $url;
11+
protected ?\CurlHandle $curlHandle = null;
12+
protected int $timeoutConnect = 15;
13+
protected int $timeoutResponse = 30;
2914

3015
public function __construct(string $url, int $timeoutConnect = 15, int $timeoutResponse = 30)
3116
{

0 commit comments

Comments
 (0)