protected function parseConfig(string $config): array
    {
        $config = json_decode($config, true);
        if ($config === null) {
            throw new ConfigFileFormatException("Config files should be written in valid JSON");
        }
        return $config;
    }
protected function parseConfig(string $config): array
    {
        $config = json_decode($config, true);
        if ($config === null) {
            throw new ConfigFileFormatException("Config files should be written in valid JSON");
        }
        return $config;
    }
protected function parseConfig ( string $ config ) : array { $ config = json_decode ( $ config , true ) ; if ( $ config === null ) { throw new ConfigFileFormatException ( "Config files should be written in valid JSON" ) ; } return $ config ; }
An overridable method that allows parsing arbitrary strings into config arrays

@param string $config The contents of a config file (or sometimes the filename itself)
@return array The config array resulting from the parse
An overridable method that allows parsing arbitrary strings into config arrays