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
There seems to be a mistake in the doc, right here. It shows the code in the second example throws an error, which I will copy here as:
$data = new \stdClass(); // by default objects are invalid.
Yaml::dump($data, Yaml::DUMP_EXCEPTION_ON_INVALID_TYPE); // throws an exception
echo $yaml; // { foo: bar }
I have Yaml 3.2.3 and I can't produce the same result, also the third line doesn't seem to have any effect than throw a syntax error, since it is undefined. Even if it was defined in the previous block, the output isn't as shown in the example above.
The text was updated successfully, but these errors were encountered:
There seems to be a mistake in the doc, right here. It shows the code in the second example throws an error, which I will copy here as:
I have Yaml
3.2.3
and I can't produce the same result, also the third line doesn't seem to have any effect than throw a syntax error, since it is undefined. Even if it was defined in the previous block, the output isn't as shown in the example above.The text was updated successfully, but these errors were encountered: