Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f2e2914

Browse files
committed
[#6622] Changing line from parse() to dump()
1 parent 20b3b37 commit f2e2914

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/yaml.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ flag::
253253
Similarly you can use ``DUMP_EXCEPTION_ON_INVALID_TYPE`` when dumping::
254254

255255
$data = new \stdClass(); // by default objects are invalid.
256-
Yaml::parse($data, Yaml::DUMP_EXCEPTION_ON_INVALID_TYPE); // throws an exception
256+
Yaml::dump($data, Yaml::DUMP_EXCEPTION_ON_INVALID_TYPE); // throws an exception
257257

258258
echo $yaml; // { foo: bar }
259259

0 commit comments

Comments
 (0)