Conditions | 2 |
Paths | 2 |
Total Lines | 14 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
29 | public function __construct(array $data) |
||
30 | { |
||
31 | $this->category = $data['category']; |
||
32 | $this->nextPageCursor = $data['nextPageCursor']; |
||
33 | |||
34 | $list = new EntityCollection(); |
||
35 | |||
36 | if (!empty($data['list'])) { |
||
37 | array_map(function ($item) use ($list) { |
||
38 | $list->push(ResponseDtoBuilder::make(GetOpenOrdersResponseItem::class, $item)); |
||
39 | }, $data['list']); |
||
40 | } |
||
41 | |||
42 | $this->list = $list; |
||
|
|||
43 | } |
||
63 |
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..