1 | <?php |
||
7 | class Generic extends BaseRequest |
||
8 | { |
||
9 | private $endpoint = ''; |
||
10 | private $params = ''; |
||
11 | |||
12 | /** |
||
13 | * Create constructor. |
||
14 | * |
||
15 | * @param IEXCloud $api |
||
16 | */ |
||
17 | public function __construct(IEXCloud $api) |
||
21 | |||
22 | /** |
||
23 | * @return string |
||
24 | */ |
||
25 | protected function getFullEndpoint(): string |
||
29 | |||
30 | /** |
||
31 | * @return bool|void |
||
32 | */ |
||
33 | protected function validateParams(): void |
||
39 | |||
40 | /** |
||
41 | * Set endpoint |
||
42 | * |
||
43 | * @param $endpoint |
||
44 | * @return Generic |
||
45 | */ |
||
46 | public function setEndpoint($endpoint) { |
||
50 | |||
51 | /** |
||
52 | * Set params |
||
53 | * |
||
54 | * @param $params |
||
55 | * @return Generic |
||
56 | */ |
||
57 | public function setParams(array $params = []) { |
||
61 | } |
||
62 |
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..