We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 20b3b37 commit f2e2914Copy full SHA for f2e2914
components/yaml.rst
@@ -253,7 +253,7 @@ flag::
253
Similarly you can use ``DUMP_EXCEPTION_ON_INVALID_TYPE`` when dumping::
254
255
$data = new \stdClass(); // by default objects are invalid.
256
- Yaml::parse($data, Yaml::DUMP_EXCEPTION_ON_INVALID_TYPE); // throws an exception
+ Yaml::dump($data, Yaml::DUMP_EXCEPTION_ON_INVALID_TYPE); // throws an exception
257
258
echo $yaml; // { foo: bar }
259
0 commit comments