Symfony YAML parsing content with comma

Viewed 309

Is there a bug within Symfony Yaml component or is this the intended behavior from the Yaml standard? As per my understanding the comma in the scenario below should act a regular content character.

\Symfony\Component\Yaml\Yaml::parse("test: 1,2");

Actual result:

array("test" => 12)

Expected result:

array("test" => "1,2")
1 Answers
Related