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