1 | <?php |
||
7 | class Curl |
||
8 | { |
||
9 | |||
10 | /** |
||
11 | * URL to Request |
||
12 | * @var string |
||
13 | */ |
||
14 | private $url; |
||
15 | |||
16 | /** |
||
17 | * Options to request |
||
18 | * @var array |
||
19 | */ |
||
20 | private $options = []; |
||
21 | |||
22 | /** |
||
23 | * Object instance |
||
24 | * @var object |
||
25 | */ |
||
26 | private $instance; |
||
27 | |||
28 | /** |
||
29 | * Response from request |
||
30 | * @var string |
||
31 | */ |
||
32 | private $response; |
||
33 | |||
34 | /** |
||
35 | * Initialize |
||
36 | * @param string $url |
||
37 | * @return Curl |
||
38 | */ |
||
39 | public function init($url) |
||
47 | |||
48 | /** |
||
49 | * Set option |
||
50 | * @param array $options |
||
51 | * @return Curl |
||
52 | */ |
||
53 | public function options(array $options) |
||
61 | |||
62 | /** |
||
63 | * POST Params |
||
64 | * @return Curl |
||
65 | */ |
||
66 | public function post(array $fields) |
||
73 | |||
74 | /** |
||
75 | * Set option in cURL |
||
76 | * @param integer $option |
||
77 | * @param mix $value |
||
78 | */ |
||
79 | public function option($option, $value) |
||
83 | |||
84 | /** |
||
85 | * Request |
||
86 | */ |
||
87 | public function exec() |
||
91 | |||
92 | /** |
||
93 | * Close connection |
||
94 | * @return Curl |
||
95 | */ |
||
96 | public function close() |
||
102 | |||
103 | /** |
||
104 | * Return response from request |
||
105 | * @return string |
||
106 | */ |
||
107 | public function response() |
||
111 | } |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..