The expression return $this->list->fetch() could return the type Carpenstar\ByBitAPI\Core...\IResponseDataInterface which includes types incompatible with the type-hinted return Carpenstar\ByBitAPI\Deri...ntInfoResponseItem|null. Consider adding an additional type-check to rule them out.