src/Converter/Converter.php
public static function convertFrontmatter($string, $type = 'yaml')
    {
        switch ($type) {
            case 'ini':
                return parse_ini_string($string);
            case 'yaml':
            default:
                try {
                    return Yaml::parse((string) $string);
                } catch (ParseException $e) {
                    throw new Exception($e->getMessage());
                }
        }
    }
public static function convertFrontmatter($string, $type = 'yaml')
    {
        switch ($type) {
            case 'ini':
                return parse_ini_string($string);
            case 'yaml':
            default:
                try {
                    return Yaml::parse((string) $string);
                } catch (ParseException $e) {
                    throw new Exception($e->getMessage());
                }
        }
    }
{@inheritdoc}