public function parseMetadata(string $source): array
    {
        $yaml = Yaml::parse($source);

        if (! is_array($yaml)) {
            throw new ParseException('The YAML value does not appear to be valid UTF-8.', -1, null, null);
        }

        return $yaml;
    }