protected function parseConfig($config)
    {
        $parsed = [];

        foreach ($config as $key=>$value) {
            if ($value instanceof XType) {
                $parsed[$key] = $value;
                continue;
            }
            $parsed[$key] = $this->stringToType($value);
        }

        return $parsed;
    }
protected function parseConfig($config)
    {
        $parsed = [];

        foreach ($config as $key=>$value) {
            if ($value instanceof XType) {
                $parsed[$key] = $value;
                continue;
            }
            $parsed[$key] = $this->stringToType($value);
        }

        return $parsed;
    }
protected function parseConfig ( $ config ) { $ parsed = [ ] ; foreach ( $ config as $ key => $ value ) { if ( $ value instanceof XType ) { $ parsed [ $ key ] = $ value ; continue ; } $ parsed [ $ key ] = $ this -> stringToType ( $ value ) ; } return $ parsed ; }
Parses each array value to a type

@param array|\Traversable $config

@return array
Parses each array value to a type