private function Parser::trimTag in Lockr 7.3
Trim the tag on top of the value.
Prevent values such as `!foo {quz: bar}` to be considered as a mapping block.
1 call to Parser::trimTag()
- Parser::doParse in vendor/
symfony/ yaml/ Parser.php
File
- vendor/
symfony/ yaml/ Parser.php, line 1093
Class
- Parser
- Parser parses YAML strings to convert them to PHP arrays.
Namespace
Symfony\Component\YamlCode
private function trimTag($value) {
if ('!' === $value[0]) {
return ltrim(substr($value, 1, strcspn($value, " \r\n", 1)), ' ');
}
return $value;
}