Total Complexity | 3 |
Total Lines | 41 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
11 | class Account extends BaseApi |
||
12 | { |
||
13 | |||
14 | /** |
||
15 | * @return AccountModel|null |
||
16 | */ |
||
17 | public function get() |
||
18 | { |
||
19 | $response = $this->browser->get('/account'); |
||
20 | if (!$response->isSuccessful()) { |
||
21 | $this->registerLastError($response); |
||
22 | |||
23 | return null; |
||
24 | } |
||
25 | |||
26 | return $this->unmarshal($response); |
||
27 | } |
||
28 | |||
29 | |||
30 | /** |
||
31 | * @param array $data |
||
32 | * @return AccountModel |
||
33 | * @throws Exception |
||
34 | */ |
||
35 | protected function cast(array $data) |
||
52 | } |
||
53 | } |
||
54 |
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..