| Total Complexity | 3 | 
| Total Lines | 26 | 
| Duplicated Lines | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php  | 
            ||
| 11 | class GetTradingFeeRateResponse extends AbstractResponse implements IGetTradingFeeRateResponseInterface  | 
            ||
| 12 | { | 
            ||
| 13 | /**  | 
            ||
| 14 | * @var IGetTradingFeeRateResponseItemInterface[]  | 
            ||
| 15 | */  | 
            ||
| 16 | private EntityCollection $list;  | 
            ||
| 17 | |||
| 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 | }  | 
            ||
| 30 | |||
| 31 | /**  | 
            ||
| 32 | * @return IGetTradingFeeRateResponseItemInterface[]  | 
            ||
| 33 | */  | 
            ||
| 34 | public function getFeeRates(): array  | 
            ||
| 37 | }  | 
            ||
| 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..