| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 18 | public function __construct(array $data) |
||
| 19 | { |
||
| 20 | $list = new EntityCollection(); |
||
| 21 | |||
| 22 | if (!empty($data['list'])) { |
||
| 23 | array_map(function ($item) use ($list) { |
||
| 24 | $list->push(ResponseDtoBuilder::make(GetTradingFeeRateResponseItem::class, $item)); |
||
| 25 | }, $data['list']); |
||
| 26 | } |
||
| 27 | |||
| 28 | $this->list = $list; |
||
|
|
|||
| 29 | } |
||
| 38 | } |
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..