Skip to content

Commit 852c0c0

Browse files
committed
[Yaml] fix dump arguments
1 parent ffee6a9 commit 852c0c0

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
@@ -276,7 +276,7 @@ flag::
276276
Similarly you can use ``DUMP_EXCEPTION_ON_INVALID_TYPE`` when dumping::
277277

278278
$data = new \stdClass(); // by default objects are invalid.
279-
Yaml::dump($data, Yaml::DUMP_EXCEPTION_ON_INVALID_TYPE); // throws an exception
279+
Yaml::dump($data, 2, 4, Yaml::DUMP_EXCEPTION_ON_INVALID_TYPE); // throws an exception
280280

281281
echo $yaml; // { foo: bar }
282282

0 commit comments

Comments
 (0)