src/Util/Yaml/Parser.php
private function trimTag(string $value): string
    {
        if ('!' === $value[0]) {
            return \ltrim(\substr($value, 1, \strcspn($value, " \r\n", 1)), ' ');
        }

        return $value;
    }
private function trimTag(string $value): string
    {
        if ('!' === $value[0]) {
            return \ltrim(\substr($value, 1, \strcspn($value, " \r\n", 1)), ' ');
        }

        return $value;
    }
private function trimTag ( string $ value ) : string { if ( '!' === $ value [ 0 ] ) { return \ ltrim ( \ substr ( $ value , 1 , \ strcspn ( $ value , " \r\n" , 1 ) ) , ' ' ) ; } return $ value ; }
Trim the tag on top of the value.

Prevent values such as `!foo {quz: bar}` to be considered as
a mapping block.
Trim the tag on top of the value .