The expression return array(Gacela\Fram...em::fromArray($config)) returns the type array<integer,Gacela\Fra...onfig\GacelaConfigItem> which is incompatible with the documented return type Gacela\Framework\Config\list.
The expression return $result returns the type Gacela\Framework\Config\...acelaConfigItem[]|array which is incompatible with the documented return type Gacela\Framework\Config\list.