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