You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not sure whether I understand the YAML standard correctly, however it seems that entries of flow sequences can contain trailing whitespace.
At the moment the trailing whitespace is part of the tagged value:
useSymfony\Component\Yaml\Yaml;
$yaml = Yaml::parse('[ !foo bar ]', Yaml::PARSE_CUSTOM_TAGS);
var_dump($yaml[0]->getValue() === 'bar'); // returns false because value is 'bar '