src/Viserio/Component/Parser/Parser/YamlParser.php
public function parse(string $payload): array
    {
        try {
            return $this->parser->parse(\trim(\preg_replace('/\t+/', '', $payload)), $this->flags);
        } catch (YamlParseException $exception) {
            throw new ParseException([
                'message'   => $exception->getMessage(),
                'exception' => $exception,
            ]);
        }
    }
public function parse(string $payload): array
    {
        try {
            return $this->parser->parse(\trim(\preg_replace('/\t+/', '', $payload)), $this->flags);
        } catch (YamlParseException $exception) {
            throw new ParseException([
                'message'   => $exception->getMessage(),
                'exception' => $exception,
            ]);
        }
    }
{@inheritdoc}