Conditions | 2 |
Paths | 2 |
Total Lines | 13 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
23 | public function __construct(array $data) |
||
24 | { |
||
25 | $this->nextPageCursor = $data['nextPageCursor']; |
||
26 | |||
27 | $list = new EntityCollection(); |
||
28 | |||
29 | if (!empty($data['list'])) { |
||
30 | array_map(function ($item) use ($list) { |
||
31 | $list->push(ResponseDtoBuilder::make(GetClosedPnLResponseItem::class, $item)); |
||
32 | }, $data['list']); |
||
33 | } |
||
34 | |||
35 | $this->list = $list; |
||
|
|||
36 | } |
||
51 |
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..